5sControl / 5sControl/5s-frontend

[1h] fix bug with adding the 2nd zone on "Camera Settings"

Offen
#485 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @AlexGurski Auf GitHub ansehen
bug
Vorherrschende Sprache
TypeScript
Sterne
3
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Summary: Данные из только что созданного поля дублируются в следующее поле при создании Зоны в окне "Camera Settings"
Precondition: Пользователь авторизован, открыта страница "Configuration"
Environment: 5S Control version:v0.4.3
http://192.168.1.111:3000
Windows 11, Chrome 114

STR:
1. Кликнуть по вкладке любой камеры
2. Кликнуть по вкладке "Zones" в окне "Camera Settings"
3. Кликнуть по кнопке "Add Zone"
4. Заполнить поле "Name"
5. Кликнуть по кнопке "Save"
6. Кликнуть по кнопке "Add Zone"
Expected result: При создании следующей зоны, поле "Name" пустое
Actual result: При создании следующей зоны, поле "Name" заполняется данными из предыдущего поля
Attachments: https://github.com/5sControl/django-front/assets/122295113/1e8edd1f-363e-4cf7-ac9c-0a4ebf7f4d2b

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Look at the 'Camera Settings' page, specifically the 'Zones' tab and the 'Add Zone' component. The bug is that a newly created zone's 'Name' field is pre-filled with data from the previous zone. Examine the form state management and how the input fields are reset after saving. Check the relevant React component files for the zone creation logic.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
react, typescript
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
40/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.