-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/waltz-ng/client/actor/components/actor-overview.js b/waltz-ng/client/actor/components/actor-overview.js
index 2a0e44bd6b..c2387a298d 100644
--- a/waltz-ng/client/actor/components/actor-overview.js
+++ b/waltz-ng/client/actor/components/actor-overview.js
@@ -36,7 +36,7 @@ function controller() {
vm.$onChanges = (changes) => {
if (vm.actor) {
- vm.entityRef = {
+ vm.parentEntityRef = {
kind: "ACTOR",
id: vm.actor.id
};
diff --git a/waltz-ng/client/assessments/components/sub-section/assessment-rating-sub-section.js b/waltz-ng/client/assessments/components/sub-section/assessment-rating-sub-section.js
index a8deafd119..85a92332d1 100644
--- a/waltz-ng/client/assessments/components/sub-section/assessment-rating-sub-section.js
+++ b/waltz-ng/client/assessments/components/sub-section/assessment-rating-sub-section.js
@@ -25,7 +25,7 @@ import {resolveResponses} from "../../../common/promise-utils";
const bindings = {
- parentEntityRef: "<"
+ parentEntityRef: ""
};
const initialState = {
@@ -72,9 +72,11 @@ function controller($q, serviceBroker) {
};
- vm.$onInit = () => {
- loadAll();
- vm.useExternalEditorPage = _.includes(["CHANGE_UNIT"], vm.parentEntityRef.kind);
+ vm.$onChanges = () => {
+ if (vm.parentEntityRef) {
+ loadAll();
+ vm.useExternalEditorPage = _.includes(["CHANGE_UNIT"], vm.parentEntityRef.kind);
+ }
};
diff --git a/waltz-ng/client/assessments/pages/view/assessment-definition-view.html b/waltz-ng/client/assessments/pages/view/assessment-definition-view.html
index 0d88a8bb7f..cd0d98c203 100644
--- a/waltz-ng/client/assessments/pages/view/assessment-definition-view.html
+++ b/waltz-ng/client/assessments/pages/view/assessment-definition-view.html
@@ -42,6 +42,7 @@