Skip to content

Commit 3845962

Browse files
committed
fix(tables): add missing onError toast to useAddTableColumn
1 parent 3e0ef3a commit 3845962

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/sim/hooks/queries/tables.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,10 @@ export function useAddTableColumn({ workspaceId, tableId }: RowMutationContext)
485485
body: { workspaceId, column },
486486
})
487487
},
488+
onError: (error) => {
489+
if (isValidationError(error)) return
490+
toast.error(error.message, { duration: 5000 })
491+
},
488492
onSettled: () => {
489493
invalidateTableSchema(queryClient, tableId)
490494
},

0 commit comments

Comments
 (0)