Skip to content

Commit

Permalink
Fix unhandled exception testing selectedArchive
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed May 6, 2024
1 parent 0b39332 commit 46e0e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ function handleGlobalDragleave (e) {
if (enteredElement === e.target) {
globalDropZone.classList.remove('dragging-over');
// Only return to page if a ZIM is actually loaded
if (selectedArchive.isReady()) {
if (selectedArchive && selectedArchive.isReady()) {
uiUtil.returnToCurrentPage();
}
}
Expand Down

0 comments on commit 46e0e00

Please sign in to comment.