Fixed bug showing on console from Unknown

This commit is contained in:
Lucas Oliveira 2023-07-28 15:05:10 -03:00
commit 638f450ead

View file

@ -120,7 +120,8 @@ export default function ParameterComponent({
refNumberComponents.current = groupedObj[0]?.type?.length;
refHtml.current = groupedObj.map((item, i) => {
const Icon: any = nodeIconsLucide[item.family];
const Icon: any =
nodeIconsLucide[item.family] ?? nodeIconsLucide["unknown"];
return (
<span