Skip to content

Commit 346f703

Browse files
committed
refactor(tables): short-circuit unlimited column types
1 parent 8fc139d commit 346f703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export function columnTypeOptionsForTable(
5252
return COLUMN_TYPE_OPTIONS.map((option) => {
5353
if (option.type === 'workflow') return option
5454
if (currentColumn?.type === option.type) return option
55-
if (!wouldExceedColumnTypeLimit(columns, option.type, 1)) return option
5655
if (option.maxPerTable === undefined) return option
56+
if (!wouldExceedColumnTypeLimit(columns, option.type, 1)) return option
5757
return {
5858
...option,
5959
disabledReason: columnTypeLimitMessage(option.label, option.maxPerTable),

0 commit comments

Comments
 (0)