Skip to content

Commit

Permalink
fix: get default relative periods labels
Browse files Browse the repository at this point in the history
  • Loading branch information
BRaimbault committed Nov 25, 2024
1 parent 67ff60d commit 7b3545a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"start-server-and-test": "^2.0.3"
},
"dependencies": {
"@dhis2/analytics": "git+https://github.com/d2-ci/analytics.git#feat/DHIS2-15796",
"@dhis2/analytics": "git+https://github.com/d2-ci/analytics.git#223ec5f2dd57fc9190aae3882ed8bbb51dde46fa",
"@dhis2/app-runtime": "^3.11.2",
"@dhis2/app-runtime-adapter-d2": "^1.1.0",
"@dhis2/app-service-datastore": "^1.0.0-beta.3",
Expand Down
3 changes: 2 additions & 1 deletion src/components/edit/thematic/ThematicDialog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PeriodDimension } from '@dhis2/analytics'
import { PeriodDimension, getRelativePeriodsMap } from '@dhis2/analytics'
import i18n from '@dhis2/d2-i18n'
import PropTypes from 'prop-types'
import React, { Component } from 'react'
Expand Down Expand Up @@ -188,6 +188,7 @@ class ThematicDialog extends Component {
const defaultPeriods = [
{
id: defaultPeriod,
name: getRelativePeriodsMap()[defaultPeriod],
},
]
setPeriods(defaultPeriods)
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2018,9 +2018,9 @@
classnames "^2.3.1"
prop-types "^15.7.2"

"@dhis2/analytics@git+https://github.com/d2-ci/analytics.git#feat/DHIS2-15796":
version "26.9.2"
resolved "git+https://github.com/d2-ci/analytics.git#c3860a94bfbb927719fcef4f8eaa57a7950018b2"
"@dhis2/analytics@git+https://github.com/d2-ci/analytics.git#223ec5f2dd57fc9190aae3882ed8bbb51dde46fa":
version "26.9.3"
resolved "git+https://github.com/d2-ci/analytics.git#223ec5f2dd57fc9190aae3882ed8bbb51dde46fa"
dependencies:
"@dhis2/multi-calendar-dates" "^1.2.2"
"@dnd-kit/core" "^6.0.7"
Expand Down

0 comments on commit 7b3545a

Please sign in to comment.