From 0bd1b13ab0c62db040f73bf3c32012e883d03c7f Mon Sep 17 00:00:00 2001 From: Konstantin Markov Date: Wed, 18 Dec 2024 13:39:51 +0200 Subject: [PATCH] Fix naming --- .../planning-editor-standalone/field-definitions/subject.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/planning-editor-standalone/field-definitions/subject.ts b/client/components/planning-editor-standalone/field-definitions/subject.ts index 4f9762bf4..c073b50fc 100644 --- a/client/components/planning-editor-standalone/field-definitions/subject.ts +++ b/client/components/planning-editor-standalone/field-definitions/subject.ts @@ -36,12 +36,12 @@ export function getSubjectField(): IFieldDefinition { return (item.subject ?? []).map(({qcode}) => qcode); }, storeValue: (item, operationalValue: Array) => { - const allSubjects: Array = (planningApi.redux.store.getState().subjects ?? []) + const filteredSubjects: Array = (planningApi.redux.store.getState().subjects ?? []) .filter((x) => operationalValue.includes(x.qcode)); return { ...item, - subject: allSubjects, + subject: filteredSubjects, }; }, }