Skip to content

Commit a9a276c

Browse files
committed
sidebar styling
1 parent 837f035 commit a9a276c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/column-config-sidebar/column-config-sidebar.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ function ColumnConfigBody({
135135
toast.success(`Saved "${trimmedName}"`)
136136
onClose()
137137
} catch (err) {
138-
// Server validation errors carry a Zod issue array on the body; surface
139-
// them inline next to the offending field instead of as a raw toast.
140138
if (isValidationError(err)) {
141139
const nameIssue =
142140
findValidationIssue(err, ['updates', 'name']) ??
@@ -146,8 +144,8 @@ function ColumnConfigBody({
146144
setNameError(nameIssue.message)
147145
return
148146
}
147+
toast.error(toError(err).message)
149148
}
150-
toast.error(toError(err).message)
151149
}
152150
}
153151

0 commit comments

Comments
 (0)