5sControl / 5sControl/5s-frontend

[1h] The directory name can't be edited again

Open
#992 0 comments 0 reactions 1 assignee Claimed by @kirilbaskakov View on GitHub
bug ESMIL QA done Stage ready v. 0.8.1
Dominant language
TypeScript
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Description
Имя справочника невозможно отредактировать больше одного раза.

Precondition:
войти в учётную запись администратора

Steps to reproduce:
1. Нажать Data Configuration
2. Нажать General directories
3. Открыть любой справочник
4. Нажать на иконку редактирования
5. Изменить имя справочника
6. Нажать кнопку Save
7. Нажать кнопку Save в модальном окне
8. Нажать на иконку редактирования
9. Изменить имя справочника ещё раз
10. Нажать кнопку Save
11. Нажать кнопку Save в модальном окне
12. Баг появляется

Actual result:
имя справочника остаётся неизменным при второй и всех последующих редакциях
Expected result:
имя справочника изменяется после каждой редакции (если имя было изменено)

Attachments:

https://github.com/user-attachments/assets/65f8beb2-181a-438c-b60d-7c22718fa37f

Environment
Device: Samsung S20+
OS: Android 13
Browser: Google Chrome
Version: 131.0.6778.260

Contributor guide

Open the contributing guide

Research direction

The issue is about a directory name not being editable after the first save in a React frontend. Look at the component handling the General directories and the modal save logic. Check the state management for the directory name field and the API call on save. The linked pull request #996 may have addressed this, so review its changes first to understand the codebase context.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.