🐛 (sheets) Fix can't start bot when filter is undefined

This commit is contained in:
Baptiste Arnaud
2023-03-17 07:42:42 +01:00
parent f9964e3f60
commit be7c0fc0d0
5 changed files with 15 additions and 14 deletions

View File

@@ -228,7 +228,7 @@ const ActionOptions = ({
case GoogleSheetsAction.GET:
return (
<Stack>
{options.referenceCell ? (
{options.referenceCell && (
<>
<Text>Row to select</Text>
<CellWithValueStack
@@ -237,12 +237,13 @@ const ActionOptions = ({
onItemChange={handleReferenceCellChange}
/>
</>
) : (
)}
{options.filter && (
<>
<Text>Filter</Text>
<RowsFilterTableList
columns={sheet?.columns ?? []}
filter={options.filter}
filter={options.filter ?? {}}
onFilterChange={handleFilterChange}
/>
</>

View File

@@ -136,9 +136,7 @@ test.describe.parallel('Google sheets integration', () => {
.press('Enter')
await expect(
page.locator('typebot-standard').locator('text=Your name is:')
).toHaveText(
`Your name is: ["Georges","John","Fred","Georges","Georges"] ["Last name","Smith","Smith"]`
)
).toHaveText(`Your name is: Georges Smith`)
})
})