Browse Source

Merge pull request #7696 from nocodb/nc-fix/add-field-from-multifield-editor

Nc fix: show newly added column in same view & hide from all other views
pull/7704/head
Raju Udava 7 months ago committed by GitHub
parent
commit
42b0bd5c64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/nc-gui/components/smartsheet/details/Fields.vue
  2. 3
      packages/nocodb/src/models/View.ts

2
packages/nc-gui/components/smartsheet/details/Fields.vue

@ -14,6 +14,7 @@ interface TableExplorerColumn extends ColumnType {
order: number
view_id: string
}
view_id?: string
}
interface op {
@ -355,6 +356,7 @@ const onFieldAdd = (state: TableExplorerColumn) => {
}
state.temp_id = `temp_${++temporaryAddCount.value}`
state.view_id = view.value?.id as string
ops.value.push({
op: 'add',
column: state,

3
packages/nocodb/src/models/View.ts

@ -583,6 +583,9 @@ export default class View implements ViewType {
ncMeta,
);
break;
case ViewTypes.FORM:
await FormViewColumn.insert(modifiedInsertObj, ncMeta);
break;
}
}
}

Loading…
Cancel
Save