diff --git a/next-tavla/src/Admin/scenarios/SelectLines/index.tsx b/next-tavla/src/Admin/scenarios/SelectLines/index.tsx index b671110dc..4121db383 100644 --- a/next-tavla/src/Admin/scenarios/SelectLines/index.tsx +++ b/next-tavla/src/Admin/scenarios/SelectLines/index.tsx @@ -47,12 +47,7 @@ function SelectLines({ 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