Selaa lähdekoodia

Fixed issue with removing all genres from a station

Kristian Vos 4 vuotta sitten
vanhempi
commit
c30a6185bf
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 8 0
      frontend/src/components/modals/EditStation.vue

+ 8 - 0
frontend/src/components/modals/EditStation.vue

@@ -539,6 +539,9 @@ export default {
 										return "Unknown/Error";
 									}
 								);
+								this.originalStation.genres = JSON.parse(
+									JSON.stringify(this.station.genres)
+								);
 							}
 						}
 					);
@@ -558,6 +561,11 @@ export default {
 										return "Unknown/Error";
 									}
 								);
+								this.originalStation.blacklistedGenres = JSON.parse(
+									JSON.stringify(
+										this.station.blacklistedGenres
+									)
+								);
 							}
 						}
 					);