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 allowExport prop in CodeTabsComponent and ApiModal" #1918

Merged
merged 2 commits into from
May 20, 2024
Merged

Conversation

anovazzi1
Copy link
Contributor

The allowExport prop was not properly implemented in the CodeTabsComponent and ApiModal views. This pull request fixes the issue by adding the allowExport prop to the CodeTabsComponent and passing it to the ApiModal view. Additionally, the allowExport prop is now properly validated in the codeTabsPropsType type definition. The changes ensure that the ExportModal component is conditionally rendered based on the value of the allowExport prop.
Also fix validateSelection that were changing the selection

…conditionally

render ExportModal component based on the prop value
feat(apiModal): pass allowExport prop to CodeTabsComponent in ApiModal view
feat(types): add allowExport prop to codeTabsPropsType in components index file
Copy link

vercel bot commented May 19, 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 19, 2024 0:51am

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working javascript Pull requests that update Javascript code labels May 19, 2024
Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label May 20, 2024
@ogabrielluiz ogabrielluiz merged commit 75642cc into dev May 20, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working javascript Pull requests that update Javascript code lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants