From 52a35be6c5371c8dc890b4371bc24f64e2798ae5 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Sun, 12 Jan 2025 11:43:10 +0100 Subject: [PATCH] change: removed dev logging --- src/components/Pagination.vue | 2 +- src/helpers/queryFormatter.ts | 2 -- src/stores/admin/club/protocol/protocolDecision.ts | 1 - src/views/admin/settings/template/TemplateEdit.vue | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/Pagination.vue b/src/components/Pagination.vue index 194a328..28084c6 100644 --- a/src/components/Pagination.vue +++ b/src/components/Pagination.vue @@ -159,7 +159,7 @@ const loadPage = (newPage: number | ".") => { if (pageEnd > entryCount.value) pageEnd = entryCount.value; let loadedElementCount = filterData(props.items, searchString.value, pageStart, pageEnd).length; - console.log(loadedElementCount, props.maxEntriesPerPage, pageStart, pageEnd) + if (loadedElementCount < props.maxEntriesPerPage && (pageEnd != props.totalCount || loadedElementCount == 0)) emit("loadData", pageStart, props.maxEntriesPerPage, searchString.value); diff --git a/src/helpers/queryFormatter.ts b/src/helpers/queryFormatter.ts index fe8cc6e..f934c6a 100644 --- a/src/helpers/queryFormatter.ts +++ b/src/helpers/queryFormatter.ts @@ -14,7 +14,6 @@ export function flattenQueryResult(result: Array): Array<{ [key: st const newKey = prefix ? `${prefix}_${key}` : key; if (Array.isArray(value) && value.every((item) => typeof item === "object" && item !== null)) { - console.log(value, newKey); const arrayResults: Array<{ [key: string]: FieldType }> = []; value.forEach((item) => { const flattenedItems = flatten(item, newKey); @@ -29,7 +28,6 @@ export function flattenQueryResult(result: Array): Array<{ [key: st }); results = tempResults; } else if (value && typeof value === "object" && !Array.isArray(value)) { - console.log(value, newKey); const objResults = flatten(value as QueryResult, newKey); const tempResults: Array<{ [key: string]: FieldType }> = []; results.forEach((res) => { diff --git a/src/stores/admin/club/protocol/protocolDecision.ts b/src/stores/admin/club/protocol/protocolDecision.ts index 8ff0fcb..069cd74 100644 --- a/src/stores/admin/club/protocol/protocolDecision.ts +++ b/src/stores/admin/club/protocol/protocolDecision.ts @@ -38,7 +38,6 @@ export const useProtocolDecisionStore = defineStore("protocolDecision", { this.loading = "fetched"; }) .catch((err) => { - console.log(err); this.loading = "failed"; }); }, diff --git a/src/views/admin/settings/template/TemplateEdit.vue b/src/views/admin/settings/template/TemplateEdit.vue index 4317717..a8d7e8a 100644 --- a/src/views/admin/settings/template/TemplateEdit.vue +++ b/src/views/admin/settings/template/TemplateEdit.vue @@ -139,7 +139,6 @@ export default defineComponent({ if (!fromSave) this.loadDesign(); }) .catch((err) => { - console.log(err); this.loading = "failed"; }); },