The word "null" shows above the left-hand menu #26
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
The word "null" appears as plain text between the toolbar and the left-hand menu on every page.
Cause
render()insrc/app.jspassesresetRequested() && !state.resetOffered ? resetBanner() : nullas an argument toroot.append(...). Ourh()helper skips null children, but the DOM'sappendconvertsnullto the string "null". Introduced with the?reset=1banner (60501b9, #19), so it shows whenever no reset is requested.Fix
Only append the banner when there is one (no null argument). Check in a real browser that the text is gone and that the
?reset=1banner still appears.Note: a saved file runs the app code it was saved with, so an existing file only loses the "null" after its data is opened in a newer build and saved (see Upgrading in the README).
Fixed in
14a46ab(Ver 261124G): the reset banner is only appended when present, so no null is passed to append(). Verified in headless Chromium that the old code left a stray "null" text node and the new code does not, and that the ?reset=1 banner still shows. Existing files lose the text after their data is opened in a newer build and saved.