Skip to content

Commit

Permalink
bloody typescript.... This is a temporary hack!
Browse files Browse the repository at this point in the history
  • Loading branch information
toyhammered committed Aug 2, 2021
1 parent c91a084 commit a7750f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ui/ListEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export default function ListEditor<T extends ModelEditUnion>({
return (
<div>
<button onClick={removeItem(index)}>Remove</button>
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
{/* @ts-ignore */}
<Component key={index} record={item} cache={currentCache} dispatch={parentDispatch} />
</div>
);
Expand Down

0 comments on commit a7750f6

Please sign in to comment.