From 78af185a36a0dc2652a84ebb39d76bfac14f9c7c Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 7 Jan 2025 16:47:44 +0200 Subject: [PATCH] Node 22 unreachable fixes Just some minor stuff that gets the client to compile --- .../WorkflowInvocationState/WorkflowInvocationMetrics.vue | 3 ++- client/src/components/admin/AdminPanel.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue index ff06ca1adf7d..71635d551007 100644 --- a/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue +++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationMetrics.vue @@ -176,7 +176,8 @@ function metricToAggregateData( aggregateByX[x] = 0; } if (x in aggregateByX) { - aggregateByX[x] += y; + const newX = aggregateByX[x] || 0 + y; + aggregateByX[x] = newX; } }); const values = Object.keys(aggregateByX).map((key) => { diff --git a/client/src/components/admin/AdminPanel.vue b/client/src/components/admin/AdminPanel.vue index 9fb87a8ddacb..6728600d4ada 100644 --- a/client/src/components/admin/AdminPanel.vue +++ b/client/src/components/admin/AdminPanel.vue @@ -10,7 +10,7 @@ const { config, isConfigLoaded } = useConfig(); const adminProperties = computed(() => { return { enableQuotas: config.value.enable_quotas, - isToolshedInstalled: config.value.tool_shed_urls?.length > 0 ?? false, + isToolshedInstalled: config.value.tool_shed_urls?.length > 0, versionMajor: config.value.version_major, }; });