Skip to content

fix: resolve 3 bugs - #1455

Closed
saurabhhhcodes wants to merge 2 commits into
devanshi14malhotra:mainfrom
saurabhhhcodes:fix/BiblioDrift-55998
Closed

saurabhhhcodes wants to merge 2 commits into
devanshi14malhotra:mainfrom
saurabhhhcodes:fix/BiblioDrift-55998

Conversation

@saurabhhhcodes

@saurabhhhcodes saurabhhhcodes commented Aug 2, 2026 •

Copy link
Copy Markdown

Description

This PR fixes real bugs found in the codebase:

  • Added null-safety guard: .map() on an undefined collection threw TypeError; now falls back to [].
  • Replaced innerHTML with textContent: prevents HTML injection/XSS and avoids unnecessary markup parsing.
  • Added null-safety guard: .map() on an undefined collection threw TypeError; now falls back to [].

Type of Change

  • Bug fix (non-breaking change fixing an issue)

How Has This Been Tested?

  • Local manual testing

Checklist

  • My code follows the style guidelines
  • I have performed a self-review

Related Issue

Ref: #1466

@netlify

netlify Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for bibliodrift-dm failed. Why did it fail? →

Name Link
🔨 Latest commit 358dbc7
🔍 Latest deploy log https://app.netlify.com/projects/bibliodrift-dm/deploys/6a6f95dd62870c00082ff073

@saurabhhhcodes saurabhhhcodes changed the title fix: code quality and safety improvements fix: resolve 3 bugs Aug 2, 2026
@saurabhhhcodes saurabhhhcodes closed this by deleting the head repository Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant