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
No related branches found
No related tags found
No related merge requests found
......@@ -344,9 +344,9 @@ export const getManifestTitle = createSelector(
* @returns {string|null}
*/
export const getManifestDescription = createSelector(
[getManifestoInstance],
manifest => manifest
&& manifest.getDescription().getValue(),
[getLocale, getManifestoInstance],
(locale, manifest) => manifest
&& manifest.getDescription().getValue(locale),
);
/**
......@@ -363,7 +363,7 @@ export const getManifestSummary = createSelector(
getManifestLocale,
],
(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