diff --git a/apps/builder/src/components/TableList.tsx b/apps/builder/src/components/TableList.tsx index 41d394457..a35abc7c0 100644 --- a/apps/builder/src/components/TableList.tsx +++ b/apps/builder/src/components/TableList.tsx @@ -22,6 +22,7 @@ type Props = { initialItems: ItemWithId[] isOrdered?: boolean addLabel?: string + newItemDefaultProps?: Partial Item: (props: TableListItemProps) => JSX.Element ComponentBetweenItems?: (props: unknown) => JSX.Element onItemsChange: (items: ItemWithId[]) => void @@ -31,6 +32,7 @@ export const TableList = ({ initialItems, isOrdered, addLabel = 'Add', + newItemDefaultProps, Item, ComponentBetweenItems, onItemsChange, @@ -40,7 +42,7 @@ export const TableList = ({ const createItem = () => { const id = createId() - const newItem = { id } as ItemWithId + const newItem = { id, ...newItemDefaultProps } as ItemWithId setItems([...items, newItem]) onItemsChange([...items, newItem]) } diff --git a/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/OpenAIChatCompletionSettings.tsx b/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/OpenAIChatCompletionSettings.tsx index ccb5ed063..da0db122c 100644 --- a/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/OpenAIChatCompletionSettings.tsx +++ b/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/OpenAIChatCompletionSettings.tsx @@ -124,12 +124,12 @@ export const OpenAIChatCompletionSettings = ({ -