Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shelter management always display 0 registers #103

Open
jesusj0o opened this issue Jan 4, 2022 · 1 comment
Open

Shelter management always display 0 registers #103

jesusj0o opened this issue Jan 4, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jesusj0o
Copy link
Contributor

jesusj0o commented Jan 4, 2022

Describe the bug
Page shelter management always show 0 registers in teaches, batches and class even when there are some registers

EXAMPLE: in this it show 0 registers on teachers

Screen Shot 2022-01-04 at 12 49 47

and we have 2 registers

Screen Shot 2022-01-04 at 12 50 19

What page/module is the bug on?

shelters module
EXAMPLE : https://makeadiff.in/madnet/#/shelters/235

Expected behavior
It should count correctly the length of the registers

@jesusj0o jesusj0o added the bug Something isn't working label Jan 4, 2022
@craterkamath
Copy link
Contributor

craterkamath commented Jan 8, 2022

You can find the view at src/pages/Shelters/View.jsx that handles /shelters/XXX.

I took a quick look at this, seems like the response from the graphQL query doesn't have any batches in it despite there being some batches for that shelther. Could be an issue in the query itself or some bug in the backend service and/or caching.

Please do note that not all shelthers suffer from this, for example /shetlers/236 works just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants