Skip to content

Commit 1fa797e

Browse files
committed
test(org): keep restored contexts optional in the composer fixture
1 parent 4b9d4a7 commit 1fa797e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/sim/app/o/[organizationId]/home/components/composer/composer.test.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ async function render(
209209
isInitialView: boolean,
210210
initialValue = 'Summarize',
211211
requestMode: 'agent' | 'assistant' | 'plan' = 'assistant',
212-
controls: Pick<ComponentProps<typeof Composer>, 'isSending' | 'restoredContexts'> = {
212+
controls: Pick<ComponentProps<typeof Composer>, 'isSending'> &
213+
Partial<Pick<ComponentProps<typeof Composer>, 'restoredContexts'>> = {
213214
isSending: false,
214215
}
215216
) {

0 commit comments

Comments
 (0)