mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 00:38:49 +01:00
Fix check before closing
This commit is contained in:
parent
5353a4535a
commit
ad8ae165a6
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ export default ({ onClose, replyToStatus, editStatus }) => {
|
|||
mediaAttachments.length > 0 &&
|
||||
mediaAttachments.some((media) => !media.id);
|
||||
|
||||
if (value !== dataset?.source || containNonIDMediaAttachments) {
|
||||
if ((value && value !== dataset?.source) || containNonIDMediaAttachments) {
|
||||
const yes = confirm(beforeUnloadCopy);
|
||||
return yes;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue