mirror of
https://github.com/horizon-rust/horizon-site.git
synced 2026-12-03 19:12:41 +07:00
[PR #24] [MERGED] Staff dashboards: escape() takes null as empty text #27
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-site#27
Loading…
Add table
Add a link
Reference in a new issue
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?
📋 Pull Request Information
Original PR: https://github.com/horizon-rust/horizon-site/pull/24
Author: @ludovic111
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111
Base:
main← Head:fix/escape-null📝 Commits (1)
d06826aStaff dashboards: escape() takes null as empty text📊 Changes
2 files changed (+10 additions, -2 deletions)
View changed files
📝
src/markdown.js(+1 -1)📝
src/markdown.test.mjs(+9 -1)📄 Description
Ludovic's Team dashboard showed
Cannot read properties of null (reading 'replace'):escape()called.replaceon a field the staff API sent asnull. It now treats a missing value as empty text, so one empty field no longer stops the whole dashboard.npm test: 57 pass, 0 fail (new test for null, undefined and a number).npm run build: clean.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.