Ensure other modals are closed when deleting maps or tokens
This commit is contained in:
parent
99502bc878
commit
fcb87104cd
@ -332,6 +332,10 @@ function SelectMapModal({
|
||||
selectedMapIds.length > 0 &&
|
||||
!selectedMaps.some((map) => map.type === "default")
|
||||
) {
|
||||
// Ensure all other modals are closed
|
||||
setIsGroupModalOpen(false);
|
||||
setIsEditModalOpen(false);
|
||||
setIsMapsResetModalOpen(false);
|
||||
setIsMapsRemoveModalOpen(true);
|
||||
}
|
||||
}
|
||||
|
@ -191,6 +191,9 @@ function SelectTokensModal({ isOpen, onRequestClose }) {
|
||||
selectedTokenIds.length > 0 &&
|
||||
!selectedTokens.some((token) => token.type === "default")
|
||||
) {
|
||||
// Ensure all other modals are closed
|
||||
setIsEditModalOpen(false);
|
||||
setIsGroupModalOpen(false);
|
||||
setIsTokensRemoveModalOpen(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user