File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ module.exports = () => {
134134
135135 await Promise . all ( shootsPromises )
136136 batchEmitter . flush ( )
137- socket . emit ( 'batchEventDone' , { kind, namespaces} )
137+ socket . emit ( 'batchEventDone' , { kind, namespaces : _ . map ( namespaces , nsObj => nsObj . namespace ) } )
138138 }
139139 } )
140140 } )
Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ const actions = {
386386 return state . shootsLoading
387387 } ,
388388 unsetShootsLoading ( { commit, getters } , namespaces ) {
389- const currentNamespace = some ( namespaces , namespace => ! getters . isCurrentNamespace ( namespace ) )
389+ const currentNamespace = ! some ( namespaces , namespace => ! getters . isCurrentNamespace ( namespace ) )
390390 if ( currentNamespace ) {
391391 commit ( 'SET_SHOOTS_LOADING' , false )
392392 }
@@ -471,7 +471,7 @@ addListener({
471471 itemKey : 'object' ,
472472 eventHandlerFn : {
473473 put : object => {
474- if ( getters . isCurrentNamespace ( object . metadata . namespace ) ) {
474+ if ( store . getters . isCurrentNamespace ( object . metadata . namespace ) ) {
475475 store . commit ( 'shoots/ITEM_PUT' , object )
476476 }
477477 }
@@ -488,7 +488,7 @@ addListener({
488488 put : data => {
489489 let objectsToPut = [ ]
490490 mapKeys ( data , ( objects , namespace ) => {
491- if ( getters . isCurrentNamespace ( namespace ) ) {
491+ if ( store . getters . isCurrentNamespace ( namespace ) ) {
492492 objectsToPut = concat ( objectsToPut , objects )
493493 }
494494 } )
You can’t perform that action at this time.
0 commit comments