Skip to content

Commit

Permalink
pkp/pkp-lib#9870 Fix edge case, when one modal replaces another
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Apr 10, 2024
1 parent 8078854 commit f537b72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stores/modalStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ export const useModalStore = defineStore('modal', () => {
modalToClose = sideModal2;
}

// it might have been replaced with other modal
if (!modalToClose) {
return;
}
modalToClose.value.opened = false;

// To keep the side modal animation nice, it needs to keep the component&props around for bit longer
Expand Down

0 comments on commit f537b72

Please sign in to comment.