From 8caafbdda4d267e282356099021e4e47eb5f5bb0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Dec 2024 17:23:32 +0000 Subject: [PATCH 1/3] chore(deps-dev): bump typescript from 4.9.4 to 5.7.2 in /web Bumps [typescript](https://github.com/microsoft/TypeScript) from 4.9.4 to 5.7.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](https://github.com/microsoft/TypeScript/compare/v4.9.4...v5.7.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- web/package.json | 2 +- web/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/package.json b/web/package.json index 1e7c9b97b9..835f9dc250 100644 --- a/web/package.json +++ b/web/package.json @@ -115,7 +115,7 @@ "terser-webpack-plugin": "^5.3.11", "ts-loader": "^9.5.1", "tty-browserify": "^0.0.1", - "typescript": "4.9.4", + "typescript": "5.7.2", "url-loader": "4.1.1", "util": "^0.12.5", "webpack": "^5.97.1", diff --git a/web/yarn.lock b/web/yarn.lock index 7517d8225d..9b02b614ee 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -17820,10 +17820,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== -typescript@4.9.4: - version "4.9.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" - integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== +typescript@5.7.2: + version "5.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" + integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== uc.micro@^2.0.0, uc.micro@^2.1.0: version "2.1.0" From 0522f751d91df6f48598a130cfb8f9fa481c26ec Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Mon, 30 Dec 2024 19:00:57 +0100 Subject: [PATCH 2/3] fix type of default value in comparison --- web/src/features/Dashboard/components/DashboardGraphsCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/features/Dashboard/components/DashboardGraphsCard.tsx b/web/src/features/Dashboard/components/DashboardGraphsCard.tsx index 173173ed99..aebcc4f122 100644 --- a/web/src/features/Dashboard/components/DashboardGraphsCard.tsx +++ b/web/src/features/Dashboard/components/DashboardGraphsCard.tsx @@ -127,7 +127,7 @@ export default class DashboardGraphsCard extends Component { console.error("Failed to compile legend template", err); } } - return metrics.length > 0 ? metrics[Object.keys(metrics)[0]] : ""; + return metrics.length > 0 ? metrics[Object.keys(metrics)[0]] : 0; }); }; From 5dd27487f0474c984dd40dd00bff55af1ba64343 Mon Sep 17 00:00:00 2001 From: Johannes Tuchscherer Date: Thu, 2 Jan 2025 11:24:32 -0700 Subject: [PATCH 3/3] Not using the length attr on a map datatype --- web/src/features/Dashboard/components/DashboardGraphsCard.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/features/Dashboard/components/DashboardGraphsCard.tsx b/web/src/features/Dashboard/components/DashboardGraphsCard.tsx index aebcc4f122..8afad189a0 100644 --- a/web/src/features/Dashboard/components/DashboardGraphsCard.tsx +++ b/web/src/features/Dashboard/components/DashboardGraphsCard.tsx @@ -127,7 +127,9 @@ export default class DashboardGraphsCard extends Component { console.error("Failed to compile legend template", err); } } - return metrics.length > 0 ? metrics[Object.keys(metrics)[0]] : 0; + return Object.keys(metrics).length > 0 + ? metrics[Object.keys(metrics)[0]] + : ""; }); };