Parcourir la source

fix(EditPlaylist): songitem menu would throw an error

Kristian Vos il y a 2 ans
Parent
commit
f6138099a1
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      frontend/src/components/modals/EditPlaylist/index.vue

+ 2 - 0
frontend/src/components/modals/EditPlaylist/index.vue

@@ -118,6 +118,8 @@
 											<i
 												class="material-icons add-to-queue-icon"
 												v-if="
+													station &&
+													station.requests &&
 													station.requests.enabled &&
 													(station.requests.access ===
 														'user' ||