mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-09 01:45:42 +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.length > 0 &&
|
||||||
mediaAttachments.some((media) => !media.id);
|
mediaAttachments.some((media) => !media.id);
|
||||||
|
|
||||||
if (value !== dataset?.source || containNonIDMediaAttachments) {
|
if ((value && value !== dataset?.source) || containNonIDMediaAttachments) {
|
||||||
const yes = confirm(beforeUnloadCopy);
|
const yes = confirm(beforeUnloadCopy);
|
||||||
return yes;
|
return yes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue