Skip to content

Commit afa07f8

Browse files
committed
refactor(tables): short-circuit unlimited column types
1 parent 3044802 commit afa07f8

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
@@ -47,8 +47,8 @@ export function columnTypeOptionsForTable(
4747
return COLUMN_TYPE_OPTIONS.map((option) => {
4848
if (option.type === 'workflow') return option
4949
if (currentColumn?.type === option.type) return option
50-
if (!wouldExceedColumnTypeLimit(columns, option.type, 1)) return option
5150
if (option.maxPerTable === undefined) return option
51+
if (!wouldExceedColumnTypeLimit(columns, option.type, 1)) return option
5252
return {
5353
...option,
5454
disabledReason: columnTypeLimitMessage(option.label, option.maxPerTable),

0 commit comments

Comments
 (0)