Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(content-manager): return default locale #20237

Draft
wants to merge 10 commits into
base: develop
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ const ListViewPage = ({
useFocusWhenNavigate();

const params = React.useMemo(() => buildValidGetParams(query), [query]);

const pluginsQueryParams = stringify({ plugins: query.plugins }, { encode: false });

const displayedAttributeFilters = allowedAttributes.map((name) => {
Expand Down Expand Up @@ -604,13 +605,15 @@ const ListViewPage = ({
}
/>
{!canRead && (
<ActionLayout endActions={<InjectionZone area="contentManager.listView.actions" />} />
<ActionLayout
endActions={<InjectionZone area="contentManager.listView.actions" key={params.locale} />}
/>
)}
{canRead && (
<ActionLayout
endActions={
<>
<InjectionZone area="contentManager.listView.actions" />
<InjectionZone area="contentManager.listView.actions" key={params.locale} />
<ViewSettingsMenu slug={slug} />
</>
}
Expand Down