From 867c71cdd133c2c1316b9511684eabe05683fab3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2025 19:49:56 +0000 Subject: [PATCH] chore(deps-dev): bump typescript from 4.9.4 to 5.7.2 in /web (#5068) * 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] * fix type of default value in comparison * Not using the length attr on a map datatype --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Lavery Co-authored-by: Johannes Tuchscherer --- web/package.json | 2 +- .../features/Dashboard/components/DashboardGraphsCard.tsx | 4 +++- web/yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 6 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/src/features/Dashboard/components/DashboardGraphsCard.tsx b/web/src/features/Dashboard/components/DashboardGraphsCard.tsx index 173173ed99..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]] : ""; + return Object.keys(metrics).length > 0 + ? metrics[Object.keys(metrics)[0]] + : ""; }); }; 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"