From 1b059240701661a05d3a59f7b54727c48b5baa9b Mon Sep 17 00:00:00 2001 From: piotrpekala7 <31202938+piotrpekala7@users.noreply.github.com> Date: Wed, 8 Jul 2020 11:55:46 +0200 Subject: [PATCH] Update project-web-service-handler.ts --- src/app/handlers/project-web-service-handler.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/handlers/project-web-service-handler.ts b/src/app/handlers/project-web-service-handler.ts index e9405c62..32682323 100644 --- a/src/app/handlers/project-web-service-handler.ts +++ b/src/app/handlers/project-web-service-handler.ts @@ -10,7 +10,7 @@ import { Drawing } from '../cartography/models/drawing'; export class WebServiceMessage { action: string; - event: Node | Link | Drawing; + event: Node | Link | Drawing | any; } @Injectable() @@ -67,13 +67,13 @@ export class ProjectWebServiceHandler { this.drawingNotificationEmitter.emit(message); } if (message.action === 'log.error') { - this.errorNotificationEmitter.emit(message.event); + this.errorNotificationEmitter.emit(message.event.message); } if (message.action === 'log.warning') { - this.warningNotificationEmitter.emit(message.event); + this.warningNotificationEmitter.emit(message.event.message); } if (message.action === 'log.info') { - this.infoNotificationEmitter.emit(message.event); + this.infoNotificationEmitter.emit(message.event.message); } } }