🔥 Remove disable response saving option
Doesn't work properly when it comes to keep tracking storage usage
This commit is contained in:
@ -54,7 +54,7 @@ export const Graph = ({
|
||||
} = useGraph()
|
||||
const { updateGroupCoordinates } = useGroupsCoordinates()
|
||||
const [graphPosition, setGraphPosition] = useState(
|
||||
graphPositionDefaultValue(typebot.groups[0].graphCoordinates)
|
||||
graphPositionDefaultValue(typebot.groups[0]?.graphCoordinates)
|
||||
)
|
||||
const [debouncedGraphPosition] = useDebounce(graphPosition, 200)
|
||||
const transform = useMemo(
|
||||
|
@ -40,7 +40,7 @@ export const ItemNodesList = ({
|
||||
|
||||
const isLastBlock =
|
||||
isDefined(typebot) &&
|
||||
typebot.groups[groupIndex].blocks[blockIndex + 1] === undefined
|
||||
typebot.groups[groupIndex]?.blocks?.[blockIndex + 1] === undefined
|
||||
|
||||
const [position, setPosition] = useState({
|
||||
x: 0,
|
||||
|
@ -46,12 +46,6 @@ export const GeneralSettingsForm = ({
|
||||
isHideQueryParamsEnabled,
|
||||
})
|
||||
|
||||
const handleDisableResultsSavingChange = (isResultSavingEnabled: boolean) =>
|
||||
onGeneralSettingsChange({
|
||||
...generalSettings,
|
||||
isResultSavingEnabled: !isResultSavingEnabled,
|
||||
})
|
||||
|
||||
return (
|
||||
<Stack spacing={6}>
|
||||
<ChangePlanModal
|
||||
@ -96,16 +90,6 @@ export const GeneralSettingsForm = ({
|
||||
onCheckChange={handleHideQueryParamsChange}
|
||||
moreInfoContent="If your URL contains query params, they will be automatically hidden when the bot starts."
|
||||
/>
|
||||
<SwitchWithLabel
|
||||
label="Disable responses saving"
|
||||
initialValue={
|
||||
isDefined(generalSettings.isResultSavingEnabled)
|
||||
? !generalSettings.isResultSavingEnabled
|
||||
: false
|
||||
}
|
||||
onCheckChange={handleDisableResultsSavingChange}
|
||||
moreInfoContent="Prevent responses from being saved on Typebot. Chats limit usage will still be tracked."
|
||||
/>
|
||||
</Stack>
|
||||
)
|
||||
}
|
||||
|
@ -24,11 +24,6 @@ test.describe.parallel('Settings page', () => {
|
||||
page.locator('input[type="checkbox"] >> nth=-3')
|
||||
).toHaveAttribute('checked', '')
|
||||
|
||||
await page.click('text="Disable responses saving"')
|
||||
await expect(
|
||||
page.locator('input[type="checkbox"] >> nth=-1')
|
||||
).toHaveAttribute('checked', '')
|
||||
|
||||
await expect(page.getByPlaceholder('Type your answer...')).toHaveValue(
|
||||
'Baptiste'
|
||||
)
|
||||
|
Reference in New Issue
Block a user