Skip to content

Commit 281f9bd

Browse files
committed
Fix reduce
1 parent 4c6ba36 commit 281f9bd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

frontend/src/components/diff/workload/CommonWorkloadConfigDiff.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ export const CommonWorkloadConfigDiff = ({
4444
baseWorkloadState?.env
4545
.map((env, idx) => ({ env, idx }))
4646
.filter(({ env }) => env.isSensitive)
47-
.reduce((obj, cur) => Object.assign(obj, { [cur.env.name]: cur.idx })) ??
48-
{};
47+
.reduce(
48+
(obj, cur) => Object.assign(obj, { [cur.env.name]: cur.idx }),
49+
{},
50+
) ?? {};
4951
return (
5052
<>
5153
<h3 className="mt-4 border-b pb-1 font-bold">Deployment Options</h3>

0 commit comments

Comments
 (0)