From 4a96d6534e86a8a4609e58302ebf9e167f39a6b9 Mon Sep 17 00:00:00 2001 From: Eleazar Resendez Date: Thu, 5 Feb 2026 09:09:35 -0600 Subject: [PATCH] fix(processes): avoid saved-search chart request when chartId missing --- resources/js/processes-catalogue/components/BaseChart.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/js/processes-catalogue/components/BaseChart.vue b/resources/js/processes-catalogue/components/BaseChart.vue index f677604381..da4058b028 100644 --- a/resources/js/processes-catalogue/components/BaseChart.vue +++ b/resources/js/processes-catalogue/components/BaseChart.vue @@ -172,7 +172,8 @@ export default { * Both packages go always together */ fetchChart() { - if (!ProcessMaker.packages.includes("package-collections") && this.chartId === null && this.chartId === 0) { + const hasCollections = ProcessMaker.packages.includes("package-collections"); + if (!hasCollections || !this.chartId) { this.getDefaultData(); return; } @@ -297,7 +298,7 @@ export default { const launchpadProperties = unparseProperties ? JSON.parse(unparseProperties) : ""; - this.chartId = launchpadProperties.saved_chart_id; + this.chartId = launchpadProperties?.saved_chart_id || 0; this.fetchChart(); }) .catch((error) => {