Fixed keyless tooltip map that showed at Console.log

This commit is contained in:
Lucas Oliveira 2023-09-27 22:21:28 -03:00
commit 5ee7da93d3
2 changed files with 4 additions and 8 deletions

View file

@ -136,7 +136,7 @@ export default function ParameterComponent({
nodeIconsLucide[item.family] ?? nodeIconsLucide["unknown"]; nodeIconsLucide[item.family] ?? nodeIconsLucide["unknown"];
return ( return (
<> <div key={index}>
{index === 0 && ( {index === 0 && (
<span> <span>
{left {left
@ -183,7 +183,7 @@ export default function ParameterComponent({
</span> </span>
</span> </span>
</span> </span>
</> </div>
); );
}); });
} else { } else {

View file

@ -17,11 +17,7 @@ import { alertContext } from "../../contexts/alertContext";
import { postValidatePrompt } from "../../controllers/API"; import { postValidatePrompt } from "../../controllers/API";
import { genericModalPropsType } from "../../types/components"; import { genericModalPropsType } from "../../types/components";
import { handleKeyDown } from "../../utils/reactflowUtils"; import { handleKeyDown } from "../../utils/reactflowUtils";
import { import { classNames, varHighlightHTML } from "../../utils/utils";
classNames,
getRandomKeyByssmm,
varHighlightHTML,
} from "../../utils/utils";
import BaseModal from "../baseModal"; import BaseModal from "../baseModal";
export default function GenericModal({ export default function GenericModal({
@ -257,7 +253,7 @@ export default function GenericModal({
{wordsHighlight.map((word, index) => ( {wordsHighlight.map((word, index) => (
<ShadTooltip <ShadTooltip
key={getRandomKeyByssmm() + index} key={index}
content={word.replace(/[{}]/g, "")} content={word.replace(/[{}]/g, "")}
asChild={false} asChild={false}
> >