We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b60ade1 commit 4a96d65Copy full SHA for 4a96d65
1 file changed
resources/js/processes-catalogue/components/BaseChart.vue
@@ -172,7 +172,8 @@ export default {
172
* Both packages go always together
173
*/
174
fetchChart() {
175
- if (!ProcessMaker.packages.includes("package-collections") && this.chartId === null && this.chartId === 0) {
+ const hasCollections = ProcessMaker.packages.includes("package-collections");
176
+ if (!hasCollections || !this.chartId) {
177
this.getDefaultData();
178
return;
179
}
@@ -297,7 +298,7 @@ export default {
297
298
const launchpadProperties = unparseProperties
299
? JSON.parse(unparseProperties)
300
: "";
- this.chartId = launchpadProperties.saved_chart_id;
301
+ this.chartId = launchpadProperties?.saved_chart_id || 0;
302
this.fetchChart();
303
})
304
.catch((error) => {
0 commit comments