Skip to content

Commit

Permalink
Merge pull request #7003 from deutschebank/db-contrib/waltz-6997-asse…
Browse files Browse the repository at this point in the history
…ssment-bug

Db contrib/waltz 6997 assessment bug
  • Loading branch information
davidwatkins73 authored Feb 23, 2024
2 parents 476c60a + ff44a8f commit f5560f9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import {assessmentDefinitionStore} from "../../../svelte-stores/assessment-definition";
let elem;
let stores = null;
let assessmentsWithoutRatings;
let assessmentsWithRatings;
let favouriteAssessments = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import {activeSections} from "../../../dynamic-section/section-store";
import {dynamicSections} from "../../../dynamic-section/dynamic-section-definitions";
import Markdown from "../../../common/svelte/Markdown.svelte";
import {primaryEntityReference} from "../../../assessments/components/rating-editor/rating-store";
export let primaryEntityRef;
Expand Down Expand Up @@ -48,6 +49,9 @@
$: datatype = _.find(datatypes, dt => dt.id === classificationRule?.dataTypeId);
$: datatypeName = _.get(datatype, ["name"], "Unknown");
$: rating = _.get(classificationsById, [classificationRule?.classificationId], unknownRating);
$: $primaryEntityReference = primaryEntityRef;
</script>
{#if classificationRule}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import {legalEntityRelationshipKindStore} from "../../../svelte-stores/legal-entity-relationship-kind-store";
import Icon from "../../../common/svelte/Icon.svelte";
import EntityLink from "../../../common/svelte/EntityLink.svelte";
import {primaryEntityReference as primaryRef} from "../../../assessments/components/rating-editor/rating-store";
export let primaryEntityReference;
Expand All @@ -35,6 +36,7 @@
}
$: relKind = $relKindCall?.data;
$: $primaryRef = primaryEntityReference;
function openAssessmentsSection() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import SubSection from "../../../common/svelte/SubSection.svelte";
import {activeSections, availableSections} from "../../../dynamic-section/section-store";
import _ from "lodash";
import {primaryEntityReference as primaryRef} from "../../../assessments/components/rating-editor/rating-store";
export let primaryEntityReference;
Expand All @@ -22,6 +23,7 @@
}
$: legalEntity = $legalEntityCall?.data;
$: $primaryRef = primaryEntityReference;
function openAssessmentsSection() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import _ from "lodash";
import Icon from "../../common/svelte/Icon.svelte";
import DescriptionFade from "../../common/svelte/DescriptionFade.svelte";
import {primaryEntityReference as primaryRef} from "../../assessments/components/rating-editor/rating-store";
export let primaryEntityReference;
Expand All @@ -26,7 +27,7 @@
$: view = $measurableRatingCall?.data;
$: allocations = view?.allocations || [];
$: allocationsBySchemeId = _.keyBy(view?.allocations, d => d.schemeId);
$: $primaryRef = primaryEntityReference;
</script>
Expand Down

0 comments on commit f5560f9

Please sign in to comment.