[BUG]: Malformed recent search data crashes the Home page

Open
#350 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@GarvSaxena is already working on this.

Since Oct 15, 2026.

  • #358 by @GarvSaxena — closed without merging

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

The payload names no source file. Start by finding where the Home page reads the oe_recent localStorage key and calls JSON.parse during render. Reproduce by setting that key to '{bad json}' and refreshing. Done means the page renders and falls back to an empty recent list when the value is invalid. Pull request #358 is already open against this issue, so check it before starting.

Written by the indexing model from the issue text.

Description

bug
Bug Description

The Home page crashes if the saved recent-search data in browser storage (oe_recent) is invalid JSON. The page parses this value while rendering without handling parse errors, so it may appear blank instead of loading.

Steps to Reproduce
  1. Open OrgExplorer in a browser.
  2. Open DevTools → Console.
  3. Run localStorage.setItem('oe_recent', '{bad json}').
  4. Refresh the page.
  5. Observe that the Home page fails to render and a JSON parsing error appears in the console.
Logs and Screenshots
Image
Environment Details

OS: windows 11

Impact

Low - Minor inconvenience

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Dominant language
JavaScript
Stars
53
Forks
187
Avg merge
18m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/OrgExplorer

All issues in AOSSIE-Org/OrgExplorer

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.