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
commit 1789e2da63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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}