Skip to content

Commit

Permalink
fix(edit): simplify map in select lines
Browse files Browse the repository at this point in the history
  • Loading branch information
asewilhelmsen committed Jul 18, 2023
1 parent 12ee707 commit e376387
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions next-tavla/src/Admin/scenarios/SelectLines/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ function SelectLines<T extends TStopPlaceTile | TQuayTile>({
onChange={() => {
if (tile.whitelistedLines?.length === uniqLines.length)
deleteLines()
else
setLines(
uniqLines.map((line) => {
return line.id
}),
)
else setLines(uniqLines.map((line) => line.id))
}}
>
Velg alle
Expand Down

0 comments on commit e376387

Please sign in to comment.