浏览代码

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
+									)
+								);
 							}
 						}
 					);