-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
fix: Add extra check to loggerMiddleware #14492
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14492 +/- ##
=======================================
Coverage 77.14% 77.14%
=======================================
Files 958 958
Lines 48241 48241
Branches 5636 5636
=======================================
Hits 37217 37217
Misses 10823 10823
Partials 201 201
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Fixes #13158 |
/testenv up |
@simcha90 since you were in the loop on the original issue, please review if you're able. Thanks! |
@rusackas Ephemeral environment spinning up at http://18.236.70.42:8080. Credentials are |
if ( | ||
eventData.target_id && | ||
dashboardLayout.present && | ||
dashboardLayout.present[eventData.target_id] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we simplify?
eventData.target_id &&
dashboardLayout.present?.[eventData.target_id]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch - should it be dashboardLayout?.present?.[eventData.target_id]
Co-authored-by: Evan Rusackas <evan@preset.io>
Ephemeral environment shutdown and build artifacts deleted. |
* Add extra check * Update superset-frontend/src/middleware/loggerMiddleware.js Co-authored-by: Evan Rusackas <evan@preset.io> * Fix linting issue Co-authored-by: Evan Rusackas <evan@preset.io>
* Add extra check * Update superset-frontend/src/middleware/loggerMiddleware.js Co-authored-by: Evan Rusackas <evan@preset.io> * Fix linting issue Co-authored-by: Evan Rusackas <evan@preset.io>
* Add extra check * Update superset-frontend/src/middleware/loggerMiddleware.js Co-authored-by: Evan Rusackas <evan@preset.io> * Fix linting issue Co-authored-by: Evan Rusackas <evan@preset.io>
SUMMARY
I could not reproduce the issue described in #13158. However, I am adding this extra check in the part of the code that was causing the problem originally in case it might help to stop the issue from happening in other places.
CURRENT MASTER BEHAVIOR
Watch the video
TEST PLAN
ADDITIONAL INFORMATION