Skip to content

Commit

Permalink
DHIS2-4749: fix comparison for finding app widget (#209)
Browse files Browse the repository at this point in the history
It seems that by coincidence folderName was matching appKey. But
folderName has changed now, and in any case it was wrong to compare
folderName with appKey as key is what is actually read and written in
dashboardItems and comes from the same object present in both api/apps and api/dashboard/q responses.

(cherry picked from commit 7ed4ea3)
  • Loading branch information
edoardo committed Sep 21, 2018
1 parent eafe046 commit a1a962c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Item/AppItem/Item.js
Expand Up @@ -12,7 +12,7 @@ const AppItem = ({ item }, context) => {

if (appKey) {
appDetails = context.d2.system.installedApps.find(
app => app.folderName === appKey
app => app.key === appKey
);
}

Expand Down

0 comments on commit a1a962c

Please sign in to comment.