Browse Source

fix(nc-gui): duplicate form view with config

pull/7717/head
Ramesh Mane 9 months ago
parent
commit
8fb5c12e7b
  1. 4
      packages/nocodb/src/models/View.ts

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

@ -1809,10 +1809,12 @@ export default class View implements ViewType {
);
break;
case ViewTypes.FORM:
const copyFromFormView =
view.copy_from_id && (await FormView.get(view.copy_from_id, ncMeta));
await FormView.insert(
{
heading: view.title,
...(copyFromView?.view || {}),
...(copyFromFormView || {}),
...view,
fk_view_id: view_id,
},

Loading…
Cancel
Save