Browse Source

fix: Fixed multiple api call happening for view data reload on field reorder

pull/6815/head
Muhammed Mustafa 1 year ago
parent
commit
910540707a
  1. 2
      packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue

2
packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue

@ -125,7 +125,7 @@ const onMove = async (_event: { moved: { newIndex: number; oldIndex: number } },
fields.value.map(async (field, index) => {
if (field.order !== index + 1) {
field.order = index + 1
saveOrUpdate(field, index, true)
await saveOrUpdate(field, index, true)
}
}),
)

Loading…
Cancel
Save