Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
dashboard
Commits
d952007a
Commit
d952007a
authored
Aug 26, 2020
by
jackie / Andrea Ida Malkah Klaura
Browse files
fix: test if hosts loaded, before using it
parent
9685d02f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/shows/NotesModal.vue
View file @
d952007a
...
...
@@ -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
=>
h
.
id
===
id
)
hosts
.
push
({
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment