Commit d952007a authored by jackie / Andrea Ida Malkah Klaura's avatar jackie / Andrea Ida Malkah Klaura
Browse files

fix: test if hosts loaded, before using it

parent 9685d02f
......@@ -106,6 +106,7 @@ export default {
// for the vue bootstrap select component we need an array of objects
// with a value, a text and optionally a disabled element
let hosts = []
if (! this.$store.state.shows.loaded.hosts) { return hosts }
for (let id of this.selectedShow.hosts) {
let host = this.allHosts.find(h => === id)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment