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

Đang mở
#350 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@GarvSaxena đang làm issue này rồi.

Từ ngày 15/10/2026.

  • #358 của @GarvSaxena — đã đóng, không merge

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
JavaScript
Star
53
Fork
187
Merge trung bình
18 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AOSSIE-Org/OrgExplorer

Tất cả issue của AOSSIE-Org/OrgExplorer

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.