Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: Indent JSON output for exported flow data #4750

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

ogabrielluiz
Copy link
Contributor

This was causing all starter projects to be reformatted in the backend because they were exported from the UI.

This pull request modifies the JSON output formatting for exported flow data in the reactflowUtils.ts file. The changes ensure that the JSON is indented for better readability by adding a spacing parameter to the JSON.stringify method.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 21, 2024
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) November 21, 2024 12:41
@github-actions github-actions bot added the bug Something isn't working label Nov 21, 2024
Copy link
Contributor

@anovazzi1 anovazzi1 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 Nov 21, 2024
@ogabrielluiz ogabrielluiz merged commit 12407f0 into main Nov 21, 2024
24 of 25 checks passed
@ogabrielluiz ogabrielluiz deleted the indent-exported-json branch November 21, 2024 17:27
mieslep pushed a commit to mieslep/langflow that referenced this pull request Nov 22, 2024
Indent JSON output for exported flow data in reactflowUtils.ts
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
Indent JSON output for exported flow data in reactflowUtils.ts
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants