mirror of https://github.com/apache/cloudstack.git
core: handle initialisation for empty async jobs list
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
3bc553695e
commit
cec74abc00
|
|
@ -122,7 +122,7 @@ export default {
|
|||
this.startPolling()
|
||||
},
|
||||
mounted () {
|
||||
this.jobs = store.getters.asyncJobIds.reverse()
|
||||
this.jobs = (store.getters.asyncJobIds || []).reverse()
|
||||
this.$store.watch(
|
||||
(state, getters) => getters.asyncJobIds,
|
||||
(newValue, oldValue) => {
|
||||
|
|
|
|||
|
|
@ -47,5 +47,5 @@ export default function Initializer () {
|
|||
store.commit('TOGGLE_MULTI_TAB', Vue.ls.get(DEFAULT_MULTI_TAB, config.multiTab))
|
||||
store.commit('SET_TOKEN', Vue.ls.get(ACCESS_TOKEN))
|
||||
store.commit('SET_PROJECT', Vue.ls.get(CURRENT_PROJECT))
|
||||
store.commit('SET_ASYNC_JOB_IDS', Vue.ls.get(ASYNC_JOB_IDS))
|
||||
store.commit('SET_ASYNC_JOB_IDS', Vue.ls.get(ASYNC_JOB_IDS) || [])
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue