From 5b21cf87c75b970ddfd5bdab8b6b0fea363a3ec6 Mon Sep 17 00:00:00 2001 From: Konstantin Markov Date: Wed, 18 Dec 2024 13:49:13 +0200 Subject: [PATCH] Improve name --- .../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 c073b50fc..776c7069e 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 filteredSubjects: Array = (planningApi.redux.store.getState().subjects ?? []) + const subjectsFull: Array = (planningApi.redux.store.getState().subjects ?? []) .filter((x) => operationalValue.includes(x.qcode)); return { ...item, - subject: filteredSubjects, + subject: subjectsFull, }; }, }