fix(core): update

This commit is contained in:
2021-01-28 12:39:31 +00:00
parent 3ee46a31f7
commit 7d6a9921b5
3 changed files with 5 additions and 9 deletions

View File

@ -192,11 +192,7 @@ export class SocketConnection {
});
this.socket.on('updateTagStore', async (tagStoreArg: interfaces.TTagStore) => {
const exitingStoreString = plugins.smartjson.stringify(this.tagStore);
const newStoreString = plugins.smartjson.stringify(tagStoreArg);
console.log(exitingStoreString);
console.log(newStoreString);
if (exitingStoreString !== newStoreString) {
if (!plugins.smartjson.deepEqualObjects(this.tagStore, tagStoreArg)) {
this.tagStore = tagStoreArg;
this.socket.emit('updateTagStore', this.tagStore);
this.tagStoreObservable.next(this.tagStore);