5sControl / 5sControl/5s-frontend

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

Ouverte
#485 1 commentaire 0 réactions 1 personne assignée Réclamée par @AlexGurski Voir sur GitHub
bug
Langage dominant
TypeScript
Étoiles
3
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
react, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
40/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.