From 04028e74d9d6aba90062c7d29c3e06e9b5a61f8a Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Fri, 3 Mar 2023 09:39:42 +0100 Subject: [PATCH] :bug: (sheets) Save variable first item if length of 1 --- apps/builder/src/components/inputs/Select.tsx | 1 - .../blocks/integrations/googleSheets/api/utils/getRow.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/builder/src/components/inputs/Select.tsx b/apps/builder/src/components/inputs/Select.tsx index 30a421e794..9c335a088c 100644 --- a/apps/builder/src/components/inputs/Select.tsx +++ b/apps/builder/src/components/inputs/Select.tsx @@ -27,7 +27,6 @@ type Props = { selectedItem?: string items: Item[] placeholder?: string - debounceTimeout?: number onSelect?: (value: string) => void } diff --git a/apps/viewer/src/features/blocks/integrations/googleSheets/api/utils/getRow.ts b/apps/viewer/src/features/blocks/integrations/googleSheets/api/utils/getRow.ts index 772cee7ee0..5851ca49e1 100644 --- a/apps/viewer/src/features/blocks/integrations/googleSheets/api/utils/getRow.ts +++ b/apps/viewer/src/features/blocks/integrations/googleSheets/api/utils/getRow.ts @@ -73,7 +73,7 @@ export const getRow = async ( ...newVariables, { ...existingVariable, - value, + value: value.length === 1 ? value[0] : value, }, ] },