From 910540707aa0f3d3de990c6e6bfbc6f1e586f8ff Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 27 Oct 2023 13:59:31 +0000 Subject: [PATCH] fix: Fixed multiple api call happening for view data reload on field reorder --- packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue index c1908ef70c..6b81cf578e 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue +++ b/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) } }), )