Browse Source

fix: exclude invalid props

pull/7477/head
Pranav C 10 months ago
parent
commit
19c179c378
  1. 4
      packages/nocodb/src/models/Column.ts

4
packages/nocodb/src/models/Column.ts

@ -1515,7 +1515,7 @@ export default class Column<T = any> implements ColumnType {
} }
insertArr.push({ insertArr.push({
color: selectColors[i % selectColors.length], // in case color is not provided color: selectColors[i % selectColors.length], // in case color is not provided
...option, ...extractProps(option, ['title', 'fk_column_id', 'color']),
fk_column_id: column.id, fk_column_id: column.id,
order: i + 1, order: i + 1,
}); });
@ -1543,7 +1543,7 @@ export default class Column<T = any> implements ColumnType {
} }
insertArr.push({ insertArr.push({
color: selectColors[i % selectColors.length], // in case color is not provided color: selectColors[i % selectColors.length], // in case color is not provided
...option, ...extractProps(option, ['title', 'fk_column_id', 'color']),
fk_column_id: column.id, fk_column_id: column.id,
order: i + 1, order: i + 1,
}); });

Loading…
Cancel
Save