mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00
fix: locale selector dropdown showing incorrect status in content man… (#23434)
This commit is contained in:
parent
1366892f87
commit
be26954af3
@ -285,7 +285,9 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
|
||||
const otherStatus = await this.getManyAvailableStatus(uid, document.localizations);
|
||||
|
||||
document.localizations = document.localizations.map((d) => {
|
||||
const status = otherStatus.find((s) => s.documentId === d.documentId);
|
||||
const status = otherStatus.find(
|
||||
(s) => s.documentId === d.documentId && s.locale === d.locale
|
||||
);
|
||||
return {
|
||||
...d,
|
||||
status: this.getStatus(d, status ? [status] : []),
|
||||
|
Loading…
x
Reference in New Issue
Block a user