Bläddra i källkod

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

Kristian Vos 3 år sedan
förälder
incheckning
42025fae95
1 ändrade filer med 2 tillägg och 2 borttagningar
  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);
 					new Toast(res.message);
 
 
 					if (res.status === "success") {
 					if (res.status === "success") {
+						this.closeModal("createPlaylist");
+
 						if (!window.addToPlaylistDropdown) {
 						if (!window.addToPlaylistDropdown) {
 							this.editPlaylist(res.data.playlistId);
 							this.editPlaylist(res.data.playlistId);
 							this.openModal("editPlaylist");
 							this.openModal("editPlaylist");
 						}
 						}
-
-						this.closeModal("createPlaylist");
 					}
 					}
 				}
 				}
 			);
 			);