Skip to content
Snippets Groups Projects
Unverified Commit 5cb692ed authored by Chris Beer's avatar Chris Beer Committed by GitHub
Browse files

Merge pull request #3780 from dbmdz/fix-description-selector

Fix selector for the manifest description or summary by considering the current language
parents 7d6759ba 2bbeff54
Branches master
No related tags found
No related merge requests found
...@@ -344,9 +344,9 @@ export const getManifestTitle = createSelector( ...@@ -344,9 +344,9 @@ export const getManifestTitle = createSelector(
* @returns {string|null} * @returns {string|null}
*/ */
export const getManifestDescription = createSelector( export const getManifestDescription = createSelector(
[getManifestoInstance], [getLocale, getManifestoInstance],
manifest => manifest (locale, manifest) => manifest
&& manifest.getDescription().getValue(), && manifest.getDescription().getValue(locale),
); );
/** /**
...@@ -363,7 +363,7 @@ export const getManifestSummary = createSelector( ...@@ -363,7 +363,7 @@ export const getManifestSummary = createSelector(
getManifestLocale, getManifestLocale,
], ],
(summary, locale) => summary (summary, locale) => summary
&& PropertyValue.parse(summary, locale).getValue(), && PropertyValue.parse(summary, locale).getValue(locale),
); );
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment