mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-01 22:10:51 +03: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…
Add table
Reference in a new issue