Skip to content

Commit

Permalink
Merge pull request #2969 from dhis2/dev
Browse files Browse the repository at this point in the history
fix: merge to master
  • Loading branch information
edoardo authored May 16, 2024
2 parents 8fdb79a + 790afd2 commit c48dba0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
3 changes: 3 additions & 0 deletions i18n/uz_UZ_Cyrl.po
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ msgstr ""
msgid "View as Chart"
msgstr "Диаграмма сифатида кўриш"

msgid "This map can't be displayed as a table"
msgstr "Ушбу харитани жадвал сифатида кўратиб бўлмайди"

msgid "View as Pivot table"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"license": "BSD-3-Clause",
"dependencies": {
"@dhis2/analytics": "^26.6.5",
"@dhis2/analytics": "^26.6.10",
"@dhis2/app-runtime": "^3.10.2",
"@dhis2/app-runtime-adapter-d2": "^1.1.0",
"@dhis2/d2-i18n": "^1.1.3",
Expand Down
15 changes: 10 additions & 5 deletions src/components/Item/VisualizationItem/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,13 @@ class Item extends Component {
}

async componentDidMount() {
this.props.setVisualization(
await apiFetchVisualization(this.props.item)
)
// Avoid refetching the visualization already in the Redux store
// when the same dashboard item is added again.
// This also solves a flashing of all the "duplicated" dashboard items.
!this.props.visualization.id &&
this.props.setVisualization(
await apiFetchVisualization(this.props.item)
)

try {
if (
Expand Down Expand Up @@ -228,8 +232,9 @@ class Item extends Component {
}
case CHART:
case VISUALIZATION: {
return item.visualization.type ===
VIS_TYPE_OUTLIER_TABLE &&
return item.type === VISUALIZATION &&
item.visualization.type ===
VIS_TYPE_OUTLIER_TABLE &&
Object.keys(itemFilters).some(
(filter) =>
![
Expand Down
1 change: 1 addition & 0 deletions src/pages/view/TitleBar/FilterDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const FilterDialog = ({
)}
selected={selectedItems}
onSelect={onSelectItems}
displayNameProp={userSettings.displayProperty}
/>
)
default:
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2245,10 +2245,10 @@
classnames "^2.3.1"
prop-types "^15.7.2"

"@dhis2/analytics@^26.6.5":
version "26.6.5"
resolved "https://registry.yarnpkg.com/@dhis2/analytics/-/analytics-26.6.5.tgz#44ee29a279c37f3969096d859bc0f07d953e3f42"
integrity sha512-ob6kNEEkIAC50RtKuUZWi8Y04uwsPHK/EiYhzxZkSOdS5wFm8X+88KZrD//fILXQjwMhJvl/4+F/T0qVxOF/jQ==
"@dhis2/analytics@^26.6.10":
version "26.6.10"
resolved "https://registry.yarnpkg.com/@dhis2/analytics/-/analytics-26.6.10.tgz#669fab3007b609a3c1a692a8261c759198e7035f"
integrity sha512-RHBvMdAuoDpSwxcoBTSsTWlhTUy8nJbKCANbFnB3NcBjsh+XMhwFJSkCGnCKElkhWbrm9h8kZVobqv62p6W2cA==
dependencies:
"@dhis2/d2-ui-rich-text" "^7.4.1"
"@dhis2/multi-calendar-dates" "1.0.0"
Expand Down

0 comments on commit c48dba0

Please sign in to comment.