From 3cdba84828ed01732e29b8f5835716a4f072d27c Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 12 Nov 2024 06:06:46 +0000 Subject: [PATCH] feat: api level restriction --- packages/nc-gui/components/dlg/ReAssign/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/dlg/ReAssign/index.vue b/packages/nc-gui/components/dlg/ReAssign/index.vue index 20882fe33b..c25b62c3e3 100644 --- a/packages/nc-gui/components/dlg/ReAssign/index.vue +++ b/packages/nc-gui/components/dlg/ReAssign/index.vue @@ -100,6 +100,7 @@ const assignView = async () => { vModel.value = false message.success('View reassigned successfully') + // if personal view then redirect to default view and reload view list if (props.view.lock_type === ViewLockType.Personal) { // navigate to default view navigateToView({ @@ -107,9 +108,11 @@ const assignView = async () => { tableId: props.view.fk_model_id, baseId: props.view.base_id!, force: true, + }).catch(() => { + // ignore }) - // if locked view is reassigned, then reload the view list + // then reload the view list viewsStore .loadViews({ ignoreLoading: true, @@ -119,9 +122,6 @@ const assignView = async () => { .catch(() => { // ignore }) - .finally(() => { - // navigate to the view - }) } } catch (e) { await message.error(await extractSdkResponseErrorMsg(e))