From 2dcce0339cdec5b3e6aa58d6e08bbe65eec77dfa Mon Sep 17 00:00:00 2001 From: Jarrod Flesch Date: Tue, 5 Sep 2023 16:04:56 -0400 Subject: [PATCH] chore: simplify logic for global status rendering --- src/admin/components/elements/Status/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin/components/elements/Status/index.tsx b/src/admin/components/elements/Status/index.tsx index 5169cdb253..ccc0914dfd 100644 --- a/src/admin/components/elements/Status/index.tsx +++ b/src/admin/components/elements/Status/index.tsx @@ -48,7 +48,7 @@ const Status: React.FC = () => { statusToRender = 'published'; } - if (global && ['published', 'draft'].includes(publishedDoc?._status)) statusToRender = publishedDoc._status; + if (global && publishedDoc) statusToRender = publishedDoc._status; const performAction = useCallback(async (action: 'revert' | 'unpublish') => { let url;