|
|
@ -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() |
|
|
|