Browse Source

fix(CreatePlaylist): closing opened EditPlaylist modal would not remove CreatePlaylist from currentlyActive modals, causing issues

Kristian Vos 3 years ago
parent
commit
42025fae95
1 changed files with 2 additions and 2 deletions
  1. 2 2
      frontend/src/components/modals/CreatePlaylist.vue

+ 2 - 2
frontend/src/components/modals/CreatePlaylist.vue

@@ -82,12 +82,12 @@ export default {
 					new Toast(res.message);
 
 					if (res.status === "success") {
+						this.closeModal("createPlaylist");
+
 						if (!window.addToPlaylistDropdown) {
 							this.editPlaylist(res.data.playlistId);
 							this.openModal("editPlaylist");
 						}
-
-						this.closeModal("createPlaylist");
 					}
 				}
 			);