Re-enable rule no-non-null-assertion (#10864)

This commit is contained in:
Kamil Gabryjelski 2020-09-14 19:40:20 +02:00 committed by GitHub
parent 1908a94c7e
commit c5193ca018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -59,7 +59,6 @@ module.exports = {
'@typescript-eslint/ban-types': 0, // disabled temporarily
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-non-null-assertion': 0, // disabled temporarily
'@typescript-eslint/no-use-before-define': 1, // disabled temporarily
'@typescript-eslint/no-unused-vars': 0, // disabled temporarily
'@typescript-eslint/explicit-function-return-type': 0,

View File

@ -289,7 +289,7 @@ export default class FilterableTable extends PureComponent<
}
fitTableToWidthIfNeeded() {
const containerWidth = this.container.current!.clientWidth;
const containerWidth = this.container.current?.clientWidth ?? 0;
if (this.totalTableWidth < containerWidth) {
// fit table width if content doesn't fill the width of the container
this.totalTableWidth = containerWidth;