Skip to content

Commit

Permalink
Improve name
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Dec 18, 2024
1 parent 0bd1b13 commit 5b21cf8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ export function getSubjectField(): IFieldDefinition {
return (item.subject ?? []).map(({qcode}) => qcode);
},
storeValue: (item, operationalValue: Array<ISubjectCode['qcode']>) => {
const filteredSubjects: Array<ISubjectCode> = (planningApi.redux.store.getState().subjects ?? [])
const subjectsFull: Array<ISubjectCode> = (planningApi.redux.store.getState().subjects ?? [])
.filter((x) => operationalValue.includes(x.qcode));

return {
...item,
subject: filteredSubjects,
subject: subjectsFull,
};
},
}
Expand Down

0 comments on commit 5b21cf8

Please sign in to comment.