Skip to content

Commit

Permalink
Node 22 unreachable fixes
Browse files Browse the repository at this point in the history
Just some minor stuff that gets the client to compile
  • Loading branch information
mvdbeek committed Jan 7, 2025
1 parent b88a792 commit 78af185
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/admin/AdminPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
});
Expand Down

0 comments on commit 78af185

Please sign in to comment.