Преглед изворни кода

Fixed issue with removing all genres from a station

Kristian Vos пре 4 година
родитељ
комит
c30a6185bf
1 измењених фајлова са 8 додато и 0 уклоњено
  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
+									)
+								);
 							}
 						}
 					);