Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Dec 18, 2024
1 parent d160f25 commit 0bd1b13
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 allSubjects: Array<ISubjectCode> = (planningApi.redux.store.getState().subjects ?? [])
const filteredSubjects: Array<ISubjectCode> = (planningApi.redux.store.getState().subjects ?? [])
.filter((x) => operationalValue.includes(x.qcode));

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

0 comments on commit 0bd1b13

Please sign in to comment.