Browse Source

remove commented code and log()

pull/4749/head
Daniel Spaude 2 years ago
parent
commit
b83f4849c2
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 2
      packages/nc-gui/components/smartsheet/Map.vue
  2. 4
      packages/nc-gui/composables/useMapViewDataStore.ts

2
packages/nc-gui/components/smartsheet/Map.vue

@ -189,7 +189,6 @@ watch([formattedData, mapMetaData, markersClusterGroupRef], () => {
addMarker(lat, long, row)
})
// syncCount()
})
watch(view, async (nextView) => {
@ -201,7 +200,6 @@ watch(view, async (nextView) => {
const count = computed(() => paginationData.value.totalRows)
// syncCount()
</script>
<template>

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

@ -61,17 +61,13 @@ const [useProvideMapViewStore, useMapViewStore] = useInjectionState(
}))
async function syncCount() {
// const shouldUpdateRowsCounter = !isPublic.value
// if (shouldUpdateRowsCounter) {
const { count } = await $api.dbViewRow.count(
NOCO,
project?.value?.title as string,
meta?.value?.id as string,
viewMeta?.value?.id as string,
)
console.log('in Sync')
paginationData.value.totalRows = count
// }
}
async function loadMapMeta() {

Loading…
Cancel
Save