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

未关闭
#350 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@GarvSaxena 已经在做这个了。

开始于 2026年10月15日。

  • #358 来自 @GarvSaxena —— 已关闭,未合并

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
javascript
领域
frontend

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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
主要语言
JavaScript
星标
53
派生
187
平均合并
18 分钟
30 天内合并 PR
2

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AOSSIE-Org/OrgExplorer 的其他 Issue

查看 AOSSIE-Org/OrgExplorer 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。