🐛 (sheets) Fix can't start bot when filter is undefined
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
</>
|
||||
|
||||
@@ -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`)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user