From e968f4067c2427965c0f96845aff8eaca36d0df6 Mon Sep 17 00:00:00 2001 From: Jarrod Flesch Date: Thu, 2 Feb 2023 16:08:42 -0500 Subject: [PATCH] fix: ensures preview is enabled before rendering button --- src/admin/components/views/Account/Default.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/admin/components/views/Account/Default.tsx b/src/admin/components/views/Account/Default.tsx index 4b79b4a018..49e9115793 100644 --- a/src/admin/components/views/Account/Default.tsx +++ b/src/admin/components/views/Account/Default.tsx @@ -144,9 +144,11 @@ const DefaultAccount: React.FC = (props) => { )}
- + {(preview && (!collection.versions?.drafts || collection.versions?.drafts?.autosave)) && ( + + )} {hasSavePermission && ( {t('general:save')} )}