Browse Source

refactor(nocodb): only send updateObj for updateMapMeta

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
68a5e0b7d2
  1. 5
      packages/nc-gui/composables/useMapViewDataStore.ts

5
packages/nc-gui/composables/useMapViewDataStore.ts

@ -93,10 +93,7 @@ const [useProvideMapViewStore, useMapViewStore] = useInjectionState(
async function updateMapMeta(updateObj: Partial<MapType>) { async function updateMapMeta(updateObj: Partial<MapType>) {
if (!viewMeta?.value?.id || !isUIAllowed('xcDatatableEditable')) return if (!viewMeta?.value?.id || !isUIAllowed('xcDatatableEditable')) return
await $api.dbView.mapUpdate(viewMeta.value.id, { await $api.dbView.mapUpdate(viewMeta.value.id, updateObj)
...mapMetaData.value,
...updateObj,
})
} }
const { getMeta } = useMetas() const { getMeta } = useMetas()

Loading…
Cancel
Save