From f87632f80abb97a1d142eafbd810c26b4e9d9646 Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Tue, 11 Oct 2022 08:43:59 -0400 Subject: [PATCH] Do not show delete button on new record --- src/components/Editor/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Editor/Editor.js b/src/components/Editor/Editor.js index 393a2352..7092f484 100644 --- a/src/components/Editor/Editor.js +++ b/src/components/Editor/Editor.js @@ -365,7 +365,7 @@ function mapStateToProps(state, ownProps) { const scrollSyncEnabled = scroll.isScrolling; return { - showDelete: !ownProps.newEntry && selectAllowDeletion(collection), + showDelete: !newEntry && selectAllowDeletion(collection), collection, collections, newEntry,