Fix findings tree TypeScript duplicate findings prop.
Spread parent props first, then override with the bucketed findings list so Next build typecheck passes.
This commit is contained in:
@@ -107,9 +107,8 @@ export function FindingsTree(props: FindingsTreeProps) {
|
||||
{roots.map((root) => {
|
||||
const body = (
|
||||
<DesignatorForest
|
||||
findings={root.items}
|
||||
graph={props.graph}
|
||||
{...props}
|
||||
findings={root.items}
|
||||
/>
|
||||
);
|
||||
if (!showRoots) return <div key={root.id}>{body}</div>;
|
||||
|
||||
Reference in New Issue
Block a user