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

Add extra undefined check for table filters #8008

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

SchrodingersGat
Copy link
Member

Fixes bug which sometimes causes rendering error for PUI table

@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed user interface backport Apply this label to a PR to enable auto-backport action Platform UI Related to the React based User Interface labels Aug 27, 2024
@SchrodingersGat SchrodingersGat added this to the 0.17.0 milestone Aug 27, 2024
Copy link

netlify bot commented Aug 27, 2024

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 9713088
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/66ce5b8418cc100008db907a
😎 Deploy Preview https://deploy-preview-8008--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 86 (no change from production)
Best Practices: 92 (no change from production)
SEO: 70 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.68%. Comparing base (1634258) to head (9713088).
Report is 302 commits behind head on master.

Files with missing lines Patch % Lines
src/frontend/src/tables/FilterSelectDrawer.tsx 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8008      +/-   ##
==========================================
+ Coverage   83.57%   83.68%   +0.10%     
==========================================
  Files        1140     1141       +1     
  Lines       50874    50860      -14     
  Branches     1774     1775       +1     
==========================================
+ Hits        42520    42562      +42     
+ Misses       7913     7847      -66     
- Partials      441      451      +10     
Flag Coverage Δ
pui 65.46% <80.00%> (+0.61%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Do not return early, this is mistake!
- Correctly handle empty activeFilter state
@SchrodingersGat SchrodingersGat merged commit 7d844e0 into inventree:master Aug 27, 2024
25 checks passed
@SchrodingersGat SchrodingersGat deleted the filter-fix branch August 27, 2024 23:24
github-actions bot pushed a commit that referenced this pull request Aug 27, 2024
* Add extra undefined check for table filters

* Logic fix..

- Do not return early, this is mistake!
- Correctly handle empty activeFilter state

(cherry picked from commit 7d844e0)
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
0.16.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

SchrodingersGat added a commit that referenced this pull request Aug 27, 2024
* Add extra undefined check for table filters

* Logic fix..

- Do not return early, this is mistake!
- Correctly handle empty activeFilter state

(cherry picked from commit 7d844e0)

Co-authored-by: Oliver <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Apply this label to a PR to enable auto-backport action bug Identifies a bug which needs to be addressed Platform UI Related to the React based User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants