diff --git a/packages/nc-gui/components/smartsheet/Map.vue b/packages/nc-gui/components/smartsheet/Map.vue index d7be3728b1..c398fa56c0 100644 --- a/packages/nc-gui/components/smartsheet/Map.vue +++ b/packages/nc-gui/components/smartsheet/Map.vue @@ -14,7 +14,8 @@ const route = useRoute() const router = useRouter() const reloadViewDataHook = inject(ReloadViewDataHookInj) const reloadViewMetaHook = inject(ReloadViewMetaHookInj) -const { formattedData, loadMapData, loadMapMeta, mapMetaData, geoDataFieldColumn, addEmptyRow } = useMapViewStoreOrThrow() +const { formattedData, loadMapData, loadMapMeta, mapMetaData, geoDataFieldColumn, addEmptyRow, syncCount, paginationData } = + useMapViewStoreOrThrow() const markersClusterGroupRef = ref() const mapContainerRef = ref() @@ -187,11 +188,28 @@ watch(view, async (nextView) => { await loadMapData() } }) + +const count = computed(() => paginationData.value.totalRows) + +syncCount()