assemblee-virtuelle / assemblee-virtuelle/semapps

Input doesn't display when refresh with only one element inside

Open
#1,148 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
103
Forks
14
Avg merge
1m
Merged PRs (30d)
2

Description

**Décrivez le bug**
I'm in React-Admin 4. When I fill an input with only one element, and then I press Crtl+F5, the field disapear.

**Etapes pour reproduire**
1. Go to relation tab
2. select one element in one of the relation field
3. the field disapear

**Captures d'écran**
I create a new formation with a discipline field with one element :

![image](https://github.com/assemblee-virtuelle/semapps/assets/6891994/900ce842-8ae6-4acb-9fd5-65ee36a56056)

I press Ctrl+F5

![image](https://github.com/assemblee-virtuelle/semapps/assets/6891994/33b3fc3a-ff8f-4d89-be3f-99c7e39aaf23)

If I create a new resource with 2 elements in discipline (or another field), no problem

![image](https://github.com/assemblee-virtuelle/semapps/assets/6891994/901b8dca-77e9-4ef9-9480-dec89ea2e084)

Idem when I press Ctrl+F5.

**Système**
On Chrome and Firefox

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in the relation tab using React-Admin 4 on Chrome or Firefox: select one element in a relation field, then press Ctrl+F5. Trace the relation-field entry point and compare the one-element and two-element cases; done means the selected field remains visible after refresh.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.