CustomUserStatusTable renders blank screen instead of error state when query fails

Aperta
#44,123 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Siddharth-singh18 ci sta già lavorando.

Dal 3/12/2026.

  • #44124 di @Siddharth-singh18 — aperta

Valutazione

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

Direzione di ricerca

Read apps/meteor/client/views/admin/customUserStatus/CustomUserStatusTable/CustomUserStatusTable.tsx and compare its loading and error handling with UsersInRoleTable, as the issue suggests. Confirm the behavior when the list query fails, then keep the filter visible and show the error state with a retry action. Done when a failed query displays an error message and reload button instead of a blank area.

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

Descrizione

type: bug
Description:

In apps/meteor/client/views/admin/customUserStatus/CustomUserStatusTable/CustomUserStatusTable.tsx, an early if (!data) { return null; } guard returns null whenever GET /v1/custom-user-status.list fails (isError), hiding <FilterByText> (along with its action children) and leaving a completely blank area with no error feedback or retry button (also marked by // TODO: Missing error state).

Steps to reproduce:
  1. Go to Administration > Workspace > Custom User Status.
  2. Simulate a network/API failure for GET /v1/custom-user-status.list.
  3. Observe the custom user status view.
Expected behavior:

Keep <FilterByText> visible and render <GenericError buttonAction={refetch} /> when isError is true so users get an error message and a reload button, matching other admin tables such as UsersInRoleTable.

Actual behavior:

The component returns null, rendering a blank screen with no error state or retry action.

Lingua principale
TypeScript
Stelle
46.6k
Fork
14.2k
Merge medio
2g 21h
PR unite (30g)
302

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RocketChat/Rocket.Chat

Tutte le issue di RocketChat/Rocket.Chat

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.