From db7f75ccd31c2d51ba3f5bfcbac291dbe0a4721b Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Tue, 11 Oct 2022 08:37:26 -0400 Subject: [PATCH] Fix delete button after removing workflow --- src/components/Editor/Editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Editor/Editor.js b/src/components/Editor/Editor.js index 0914d3d1..393a2352 100644 --- a/src/components/Editor/Editor.js +++ b/src/components/Editor/Editor.js @@ -23,7 +23,7 @@ import { } from '../../actions/entries'; import { loadScroll, toggleScroll } from '../../actions/scroll'; import { selectEntry } from '../../reducers'; -import { selectFields } from '../../reducers/collections'; +import { selectFields, selectAllowDeletion } from '../../reducers/collections'; import { history, navigateToCollection, navigateToNewEntry } from '../../routing/history'; import { Loader } from '../../ui'; import confirm from '../UI/Confirm'; @@ -365,6 +365,7 @@ function mapStateToProps(state, ownProps) { const scrollSyncEnabled = scroll.isScrolling; return { + showDelete: !ownProps.newEntry && selectAllowDeletion(collection), collection, collections, newEntry,