소스 검색

fix: modal listeners would not be deleted when closing a modal via closeModal instead of closeCurrentModal

Kristian Vos 3 년 전
부모
커밋
12da0056b1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      frontend/src/store/modules/modalVisibility.js

+ 1 - 0
frontend/src/store/modules/modalVisibility.js

@@ -83,6 +83,7 @@ const mutations = {
 	closeModal(state, modal) {
 		Object.entries(state.modals).forEach(([uuid, _modal]) => {
 			if (modal === _modal) {
+				ws.destroyModalListeners(uuid);
 				state.activeModals.splice(state.activeModals.indexOf(uuid), 1);
 				delete state.modals[uuid];
 			}