diff --git a/CHANGELOG.md b/CHANGELOG.md index e30c61b59..e733f2618 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format ## [UNRELEASED] +## [2.5.3] 2021-10-27 + +### Fixed + +- KPI graph did not show if one progress object had a value equal to 0 + ## [2.5.2] 2021-10-19 ### Fixed diff --git a/functions/.gitignore b/functions/.gitignore index 947a183fe..0e171f493 100644 --- a/functions/.gitignore +++ b/functions/.gitignore @@ -1,4 +1,5 @@ node_modules/ .runtimeconfig.json +.runtimeconfig-dev.json origo-okr-tracker-private-key.json okr-tracker-production-private-key.json diff --git a/package-lock.json b/package-lock.json index 50db2ac7b..ff339e403 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "okr-tracker", - "version": "2.5.2", + "version": "2.5.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3b5ae9fe3..fbc137548 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "okr-tracker", - "version": "2.5.2", + "version": "2.5.3", "private": true, "scripts": { "dev": "firebase emulators:start --import=./mock_data & vite", diff --git a/src/views/KpiHome.vue b/src/views/KpiHome.vue index 7ec27adec..73178b54f 100644 --- a/src/views/KpiHome.vue +++ b/src/views/KpiHome.vue @@ -215,8 +215,7 @@ export default { const [startValue, targetValue] = extent(this.filteredProgress.map(({ value }) => value)); const [startDate, endDate] = extent(this.filteredProgress.map(({ timestamp }) => timestamp)); - if (!this.graph || !startValue || !targetValue) return; - + if (!this.graph || !startValue === undefined || !targetValue === undefined) return; this.graph.render( { startValue,