Repository navigation
fix(ui): no stray "null" on the Import page - #830
Open
MathiasVDA wants to merge 1 commit into
Open
MathiasVDA wants to merge 1 commit into
MathiasVDA wants to merge 1 commit into
Conversation
…iting null replaceChildren writes a null child as the text "null": under the file's card without --schema-tools, and after Add to the graph with no next file. The page's replaceChildren calls now go through a helper that drops null and false children, as el() does. Closes #801
Contributor
Author
|
Generated by Claude Code |
Contributor
Author
|
Review (Reviewer 2), round 1 at 88e58a4: approved, needs a merge of main
Generated by Claude Code |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Mathias · project thread
Closes #801
What
The Import page wrote the word
nullin two places: under the file's card when the server runs without--schema-tools, and after Add to the graph when no file is left.replaceChildrenturns anullchild into text. EveryreplaceChildrencall inui/import.jsnow goes through afill(node, ...children)helper that dropsnullandfalsechildren, the same helperaccess.js,shapes.jsandworkbench.jsalready use. No other UI script passes a conditional child toreplaceChildrendirectly.Tests
ui-tests/test/add-data.test.mjsnow checks that#imp-workhas no "null" text after the first draft (no schema tools), and after the last file is added (no#imp-next). Without the fix the test fails on#imp-work. With it, all 3 tests pass.Docs
CHANGELOG (Fixed).
Generated by Claude Code