-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
chore: type FilterableTable #10073
chore: type FilterableTable #10073
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10073 +/- ##
==========================================
+ Coverage 70.49% 70.51% +0.01%
==========================================
Files 585 585
Lines 31073 31096 +23
Branches 3185 3191 +6
==========================================
+ Hits 21905 21927 +22
Misses 9058 9058
- Partials 110 111 +1
Continue to review full report at Codecov.
|
superset-frontend/src/components/FilterableTable/FilterableTable.tsx
Outdated
Show resolved
Hide resolved
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.
LGTM with some minor suggestion and questions
this.setState({ sortBy, sortDirection }); | ||
} | ||
|
||
fitTableToWidthIfNeeded() { | ||
const containerWidth = this.container.clientWidth; | ||
const containerWidth = this.container.current!.clientWidth; |
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.
this.container
was the same createRef
before. Does this mean this code used to not work?
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.
unclear to be honest. I think I should trust TypeScript's typing here though, and not having current threw an error
80ce615
to
1c2a409
Compare
SUMMARY
As titled. Related to #10004
TEST PLAN
ADDITIONAL INFORMATION
to: @ktmud @nytai @graceguo-supercat