diff --git a/packages/@sanity/desk-tool/src/pane/documentPaneFooterActions.js b/packages/@sanity/desk-tool/src/pane/documentPaneFooterActions.js index 3c4181a07e7..1e2bcc51318 100644 --- a/packages/@sanity/desk-tool/src/pane/documentPaneFooterActions.js +++ b/packages/@sanity/desk-tool/src/pane/documentPaneFooterActions.js @@ -20,7 +20,7 @@ export function getDocumentPaneFooterActions(props) { const isNonexistent = !draft && !published const actions = [ - { + enabledActions.includes('publish') && { color: 'primary', disabled: isCreatingDraft ||