Skip to content

Commit

Permalink
Unnecessary const
Browse files Browse the repository at this point in the history
  • Loading branch information
p3rcypj committed Oct 23, 2024
1 parent 41da18f commit 678c6e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webapp/components/org-unit-selector/OrgUnitSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ export const OrgUnitSelector: React.FC<OrgUnitSelectorProps> = React.memo(props

const apply = React.useCallback(() => {
startLoading();

const orgUnitIds = _(currentPaths)
.map(path => path.split("/").slice(-1))
.flatten()
.value();

const ids = orgUnitIds;
const getOrgUnits$ = compositionRoot.orgUnits.getWithChildren.execute(ids);
const getOrgUnits$ = compositionRoot.orgUnits.getWithChildren.execute(orgUnitIds);

getOrgUnits$.run(
orgUnits => {
Expand Down

0 comments on commit 678c6e0

Please sign in to comment.