5sControl / 5sControl/5s-frontend

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

Aperta
#485 1 commento 0 reazioni 1 assegnatario Rivendicata da @AlexGurski Vedi su GitHub
bug
Lingua principale
TypeScript
Stelle
3
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
react, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
40/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.