fix: correct issue with The "No suitable component" error is appearing on the OpenAI component and other components due to a missing check (#3279)

This commit is contained in:
neeraj gupta
2024-08-11 16:52:45 +05:30
committed by GitHub
parent 583bc74019
commit 1789e2da63

View File

@@ -137,8 +137,9 @@ export default function NodeInputField({
)}
</div>
</div>
{displayHandle && (
{(Array.isArray(displayHandle)
? displayHandle.length > 0
: displayHandle) && (
<HandleRenderComponent
left={true}
nodes={nodes}