2
0

🐛 (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}
/>
</>