Skip to content

Commit

Permalink
Fallback discovery store data
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Oct 3, 2024
1 parent ea97ea4 commit 799c067
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions client/web/discovery/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@ export default new Vuex.Store({
state.processing = value
},

updateTypes (state, types) {
updateTypes (state, types = []) {
state.types = types
},
updateAggregations (state, aggs) {

updateAggregations (state, aggs = []) {
state.aggregations = aggs
},
updateModules (state, value) {
state.modules = value

updateModules (state, modules = []) {
state.modules = modules
},
updateNamespaces (state, value) {
state.namespaces = value

updateNamespaces (state, namespaces = []) {
state.namespaces = namespaces
},
},
actions: {
Expand Down

0 comments on commit 799c067

Please sign in to comment.