Fixind redis events
Change-Id: If163afcc5ba5ba2235f539e05f02e4c120f49bae
diff --git a/src/app/datasources/websocket/global.ts b/src/app/datasources/websocket/global.ts
index aeb92b4..1367dc7 100644
--- a/src/app/datasources/websocket/global.ts
+++ b/src/app/datasources/websocket/global.ts
@@ -68,8 +68,11 @@
if (data.msg.object.class_names && angular.isString(data.msg.object.class_names)) {
const models = data.msg.object.class_names.split(',');
_.forEach(models, (m: string) => {
- data.model = m;
- this._events.next(data);
+ // send event only if the parent class is not the same as the model class
+ if (data.model !== m) {
+ data.model = m;
+ this._events.next(data);
+ }
});
}