Skip to content
Snippets Groups Projects
Commit 2bbeff54 authored by Matthias Lindinger's avatar Matthias Lindinger
Browse files

Fix selector for the manifest description or summary by considering the current language

parent 04c5b67e
Branches
No related tags found
No related merge requests found
......@@ -322,9 +322,9 @@ export const getManifestTitle = createSelector(
* @return {String|null}
*/
export const getManifestDescription = createSelector(
[getManifestoInstance],
manifest => manifest
&& manifest.getDescription().getValue(),
[getLocale, getManifestoInstance],
(locale, manifest) => manifest
&& manifest.getDescription().getValue(locale),
);
/**
......@@ -341,7 +341,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