Do not show delete button on new record
This commit is contained in:
parent
ccde4a0bb2
commit
f87632f80a
@ -365,7 +365,7 @@ function mapStateToProps(state, ownProps) {
|
|||||||
const scrollSyncEnabled = scroll.isScrolling;
|
const scrollSyncEnabled = scroll.isScrolling;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
showDelete: !ownProps.newEntry && selectAllowDeletion(collection),
|
showDelete: !newEntry && selectAllowDeletion(collection),
|
||||||
collection,
|
collection,
|
||||||
collections,
|
collections,
|
||||||
newEntry,
|
newEntry,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user