Skip to content

Commit

Permalink
fixed unique key error in AssistantTestResult
Browse files Browse the repository at this point in the history
  • Loading branch information
rosannamilner committed Aug 20, 2024
1 parent 85e62cb commit 89b7df1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import _ from "lodash";
import { v4 as uuidv4 } from "uuid";

/**
* Interpolate RGB between an arbitrary range
Expand Down Expand Up @@ -145,7 +146,7 @@ function treeMapToElementsRecursive(
//Collect attributes
let attributes = {};
if (treeElem.attributes) {
attributes = treeElem.attributes;
attributes = { ...treeElem.attributes, key: uuidv4() };
}

return React.createElement(treeElem.tag, attributes, childElems);
Expand Down

0 comments on commit 89b7df1

Please sign in to comment.