Skip to content

Commit b2bff28

Browse files
committed
Fix lint issue
1 parent dbcc75b commit b2bff28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react/src/ActionBar/ActionBar.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636

3737
.Group {
3838
display: flex;
39-
}
39+
}

packages/react/src/ActionBar/ActionBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,13 @@ export const ActionBar: React.FC<React.PropsWithChildren<ActionBarProps>> = prop
270270
)
271271
}
272272

273+
// TODO: refine this so that we don't have to loop through the registry multiple times
273274
const groupedItems = Array.from(childRegistry).filter(([, childProps]) => {
274275
if (childProps?.type !== 'action') return false
275276
if (childProps.groupId !== id) return false
276277
return true
277278
})
278279

279-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
280280
if (menuItem.type === 'group') {
281281
return (
282282
<ActionMenu key={id}>

0 commit comments

Comments
 (0)