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

(frontend): Remove NATIVE_CATEGORIES constant and simplify logic for checking template code value in GenericNode component #2008

Merged
merged 1 commit into from
May 30, 2024

Conversation

ogabrielluiz
Copy link
Contributor

This pull request removes the NATIVE_CATEGORIES constant and simplifies the logic for checking the template code value in the GenericNode component. The logic now checks if the data.node.template.code.value exists before proceeding. Additionally, the logic for checking the template code value has been simplified by removing the unnecessary check for NATIVE_CATEGORIES.includes(types[data.type]).

…r checking template code value in GenericNode component
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 29, 2024
Copy link

vercel bot commented May 29, 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 29, 2024 2:23pm

@dosubot dosubot bot added the javascript Pull requests that update Javascript code label May 29, 2024
@ogabrielluiz ogabrielluiz merged commit 63314b0 into dev May 30, 2024
6 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code 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