Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit f5933b1

Browse files
committed
Removes unnecessary map to const
1 parent fe3c0f8 commit f5933b1

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

apps/ui/components/application/Page2.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ const Page2 = ({ application, onNext }: Props): JSX.Element => {
286286
const resetCells = (index: number) => {
287287
const updated = [...selectorData];
288288
updated[index] = selectorData[index].map((n) =>
289-
n.map((nn) => ({ ...nn, state: 100 as const }))
289+
n.map((nn) => ({ ...nn, state: 100 }))
290290
);
291291
setSelectorData(updated);
292292
};
@@ -318,12 +318,6 @@ const Page2 = ({ application, onNext }: Props): JSX.Element => {
318318
.map((aes) =>
319319
aes
320320
.filter((ae) => ae.priority === 300 || ae.priority === 200)
321-
.map((ae) => {
322-
return {
323-
...ae,
324-
priority: ae.priority === 300 ? (300 as const) : (200 as const),
325-
};
326-
})
327321
)
328322
.flat();
329323
if (selectedAppEvents.length === 0) {

0 commit comments

Comments
 (0)