From 58b9499476aea7bf5f14c26c65f96b2a205a4eaf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:38:15 -0400 Subject: [PATCH] Bump @types/lodash from 4.17.5 to 4.17.7 (#6001) * Bump @types/lodash from 4.17.5 to 4.17.7 Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.17.5 to 4.17.7. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash) --- updated-dependencies: - dependency-name: "@types/lodash" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * lodash returns better types, so fixed a type problem that was discovered Signed-off-by: Amndeep Singh Mann * linter Signed-off-by: Amndeep Singh Mann --------- Signed-off-by: dependabot[bot] Signed-off-by: Amndeep Singh Mann Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Amndeep Singh Mann --- apps/frontend/src/components/cards/EvaluationInfo.vue | 8 +++++++- yarn.lock | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/frontend/src/components/cards/EvaluationInfo.vue b/apps/frontend/src/components/cards/EvaluationInfo.vue index 12bc92df52..2996ced499 100644 --- a/apps/frontend/src/components/cards/EvaluationInfo.vue +++ b/apps/frontend/src/components/cards/EvaluationInfo.vue @@ -102,7 +102,13 @@ export default class EvaluationInfo extends Vue { } get duration(): string | undefined { - return _.get(this.file_object, 'evaluation.data.statistics.duration'); + const duration = _.get( + this.file_object, + 'evaluation.data.statistics.duration' + ); + return duration === null || duration === undefined + ? undefined + : duration.toString(); } get evaluation(): IEvaluation | undefined { diff --git a/yarn.lock b/yarn.lock index 7f3d12c315..3eae61f93c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4827,9 +4827,9 @@ "@types/node" "*" "@types/lodash@*", "@types/lodash@^4.14.161": - version "4.17.5" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.5.tgz#e6c29b58e66995d57cd170ce3e2a61926d55ee04" - integrity sha512-MBIOHVZqVqgfro1euRDWX7OO0fBVUUMrN6Pwm8LQsz8cWhEpihlvR70ENj3f40j58TNxZaWv2ndSkInykNBBJw== + version "4.17.7" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.7.tgz#2f776bcb53adc9e13b2c0dfd493dfcbd7de43612" + integrity sha512-8wTvZawATi/lsmNu10/j2hk1KEP0IvjubqPE3cu1Xz7xfXXt5oCq3SNUz4fMIP4XGF9Ky+Ue2tBA3hcS7LSBlA== "@types/long@^4.0.0": version "4.0.2"