5sControl / 5sControl/5s-frontend

[3h] In orders view , the page crashes when the checkboxes in the filter are disabled

Đang mở
#635 0 bình luận 0 reaction 1 người được giao Được @pkostukevich nhận Xem trên GitHub
bug ESMIL
Ngôn ngữ chính
TypeScript
Star
3
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

В orders view , краш страницы , при отключении чекбоксов в фильтре

**Steps:**

1. Перейти в orders view
2. Перейти в фильтр
3. Убрать все активные чекбоксы
4. Нажать кнопку Done

**Actual result:**
При отключении всех чекбоксов страница не отображается

**Expected Result:**
При отключении всех чекбоксов страница отображает информацию

**Files:**

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Look for the orders view component and its filter logic, likely in a file like `src/views/OrdersView.tsx` or similar. Examine the filter component that handles checkboxes; the crash likely occurs when all checkboxes are unchecked and the filter tries to process an empty selection. Check the browser console for errors to identify the exact line. The fix is to ensure the filter handles an empty selection gracefully, perhaps by showing all items or displaying a message.

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

Đánh giá

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

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.