5sControl / 5sControl/5s-frontend
[1h] fix bug with adding the 2nd zone on "Camera Settings"
- Lenguaje dominante
- TypeScript
- Estrellas
- 3
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- react, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 40/100