Skip to content

Commit

Permalink
⚛️ removes isShared from toolbar button props to prevent browser error
Browse files Browse the repository at this point in the history
  • Loading branch information
josemigallas committed Dec 14, 2023
1 parent 8bd9aee commit 152dee4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/javascript/src/Common/components/TableToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ const TableToolbar: FunctionComponent<Props> = ({
<OverflowMenu breakpoint="xl" breakpointReference={toolbarRef}>
<OverflowMenuContent>
<OverflowMenuGroup groupType="button">
{overflow.filter(i => i.isShared).map(({ label, ...btnProps }) => (
{/* eslint-disable-next-line @typescript-eslint/no-unused-vars -- Remove isShared from button props */}
{overflow.filter(i => i.isShared).map(({ label, isShared, ...btnProps }) => (
<OverflowMenuItem key={label}>
<Button component="a" {...btnProps}>{label}</Button>
</OverflowMenuItem>
Expand Down

0 comments on commit 152dee4

Please sign in to comment.