[PR #24] [MERGED] Staff dashboards: escape() takes null as empty text #27

Closed
opened 2026-11-03 04:02:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • d06826a Staff 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

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Ludovic's Team dashboard showed Cannot read properties of null (reading 'replace'): escape() called .replace on a field the staff API sent as null. 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.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon-site/pull/24 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/escape-null` --- ### 📝 Commits (1) - [`d06826a`](https://github.com/horizon-rust/horizon-site/commit/d06826aaab236b03d7337dfab3a0a0903e919d42) Staff dashboards: escape() takes null as empty text ### 📊 Changes **2 files changed** (+10 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/markdown.js` (+1 -1) 📝 `src/markdown.test.mjs` (+9 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Ludovic's Team dashboard showed `Cannot read properties of null (reading 'replace')`: `escape()` called `.replace` on a field the staff API sent as `null`. 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](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:02:28 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon-site#27
No description provided.