frontend-rw #1
1 changed files with 11 additions and 14 deletions
|
@ -31,8 +31,6 @@ const DraftStatusActionBar: React.FC<IDraftStatusActionBar> = ({ source, status
|
|||
const dispatch = useAppDispatch();
|
||||
|
||||
const handleCancelClick = () => {
|
||||
dispatch((_, getState) => {
|
||||
|
||||
const deleteModal = settings.deleteModal;
|
||||
if (!deleteModal) {
|
||||
dispatch(cancelDraftStatus(source.draft_id));
|
||||
|
@ -44,7 +42,6 @@ const DraftStatusActionBar: React.FC<IDraftStatusActionBar> = ({ source, status
|
|||
onConfirm: () => dispatch(cancelDraftStatus(source.draft_id)),
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const handleEditClick = () => {
|
||||
|
|
Loading…
Reference in a new issue