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) => {
|
{roots.map((root) => {
|
||||||
const body = (
|
const body = (
|
||||||
<DesignatorForest
|
<DesignatorForest
|
||||||
findings={root.items}
|
|
||||||
graph={props.graph}
|
|
||||||
{...props}
|
{...props}
|
||||||
|
findings={root.items}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
if (!showRoots) return <div key={root.id}>{body}</div>;
|
if (!showRoots) return <div key={root.id}>{body}</div>;
|
||||||
|
|||||||
Reference in New Issue
Block a user