[CORD-2871]
Pass id of object rather than whole object to stateWithParamsForJs
Change-Id: I3c61d7d493718860631311f40acb1702a4939c44
diff --git a/src/app/core/header/header.ts b/src/app/core/header/header.ts
index 8bb60a4..5ef9459 100644
--- a/src/app/core/header/header.ts
+++ b/src/app/core/header/header.ts
@@ -1,4 +1,3 @@
-
/*
* Copyright 2017-present Open Networking Foundation
@@ -15,7 +14,6 @@
* limitations under the License.
*/
-
import './header.scss';
import {IWSEvent} from '../../datasources/websocket/global';
import {IStoreService} from '../../datasources/stores/synchronizer.store';
@@ -168,7 +166,7 @@
modelName = `${modelClassName} [${event.msg.object.id}]`;
}
- const dest = this.ConfigHelpers.stateWithParamsForJs(modelClassName, event.msg.object);
+ const dest = this.ConfigHelpers.stateWithParamsForJs(modelClassName, event.msg.object.id);
if (!event.skip_notification) {
this.toastr[toastrLevel](`${toastrMsg} ${modelName}`, modelClassName, {extraData: {dest: dest}});