diff --git a/cmd/mtwebmapper/client/src/store/index.js b/cmd/mtwebmapper/client/src/store/index.js index 58bf295..4baebf8 100644 --- a/cmd/mtwebmapper/client/src/store/index.js +++ b/cmd/mtwebmapper/client/src/store/index.js @@ -49,7 +49,7 @@ export default new Vuex.Store({ actions: { stopAutoUpdate: function({ state }) { - if (this.socket) { + if (state.socket) { var s = state.socket; state.socket = null; s.close();