issues
search
smallcloudai
/
refact-chat-js
Shared chat code for all IDEs
BSD 3-Clause "New" or "Revised" License
6
stars
0
forks
source link
Fix: Spinner component render if statisticData is undefined
#102
Closed
alashchev17
closed
3 weeks ago
alashchev17
commented
3 weeks ago
Fix: Spinner component render if statisticData is undefined
Description
Statistics view was crashing because was trying to access statisticData which was undefined.
Changed a bit logic for waiting for data and rendering a loading spinner.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Refactoring (no functional changes, only code improvements)
[ ] Documentation update
How to Test
Step 1: Open a Dropdown
Step 2: Click "Your Stats"
Checklist
[x] My code follows the code style of this project.
[x] I have performed a self-review of my code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] New and existing unit tests pass locally with my changes.
[ ] Any dependent changes have been merged and published in downstream modules.
[ ] I have updated the documentation where necessary.
Fix: Spinner component render if statisticData is undefined
Description
Type of change
How to Test
Checklist