Browse Source

fix: duplicated variable name

pull/6549/head
mertmit 1 year ago
parent
commit
e6f9f469ca
  1. 4
      packages/nc-gui/components/tabs/auth/user-management/ShareBase.vue

4
packages/nc-gui/components/tabs/auth/user-management/ShareBase.vue

@ -91,11 +91,11 @@ const recreate = async () => {
try { try {
if (!base.value.id) return if (!base.value.id) return
const sharedBase = await $api.base.sharedBaseCreate(base.value.id, { const createdShareBase = await $api.base.sharedBaseCreate(base.value.id, {
roles: sharedBase.value?.role || ShareBaseRole.Viewer, roles: sharedBase.value?.role || ShareBaseRole.Viewer,
}) })
const newBase = sharedBase || {} const newBase = createdShareBase || {}
sharedBase.value = { ...newBase, role: sharedBase.value?.role } sharedBase.value = { ...newBase, role: sharedBase.value?.role }
} catch (e: any) { } catch (e: any) {

Loading…
Cancel
Save