Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix custom_repr assignment in instantiate_custom_component function #1828

Merged
merged 1 commit into from
May 2, 2024

Conversation

ogabrielluiz
Copy link
Contributor

This pull request fixes the assignment of the custom_repr variable in the instantiate_custom_component function. The previous code used the "not" operator to check if custom_repr was empty, but this caused incorrect behavior when custom_repr was set to an empty string. The fix changes the check to use "is None" instead, ensuring that custom_repr is correctly assigned.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 2, 2024
Copy link

render bot commented May 2, 2024

Copy link

vercel bot commented May 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langflow ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2024 8:20pm

@dosubot dosubot bot added the bug Something isn't working label May 2, 2024
@ogabrielluiz ogabrielluiz merged commit 354a236 into dev May 2, 2024
5 of 9 checks passed
@ogabrielluiz ogabrielluiz deleted the fix_status branch May 2, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant