Skip to content

Commit 51eecf7

Browse files
committed
add optional chaining
1 parent 7920b2c commit 51eecf7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build": "npm run build-cjs && npm run build-es6 && npm run build-types && rimraf umd && npm run build-umd && npm run build-min",
1717
"build-types": "tsc --emitDeclarationOnly",
1818
"build-cjs": "rimraf lib && babel ./src -d lib --extensions \".ts,.tsx\"",
19-
"build-es6": "rimraf es6 && babel ./src -d es6 --blacklist=es6.modules --extensions \".ts,.tsx\"",
19+
"build-es6": "rimraf es6 && babel ./src -d es6 --extensions \".ts,.tsx\"",
2020
"build-umd": "NODE_ENV=development webpack src/LoadingOverlay.tsx -o umd/index.js",
2121
"build-min": "NODE_ENV=production webpack src/LoadingOverlay.tsx -o umd/index.min.js",
2222
"storybook": "start-storybook -p 9001",
@@ -49,7 +49,7 @@
4949
"@babel/plugin-syntax-class-properties": "^7.1.0",
5050
"@babel/preset-env": "^7.1.0",
5151
"@babel/preset-react": "^7.0.0",
52-
"@babel/preset-typescript": "^7.7.7",
52+
"@babel/preset-typescript": "^7.12.7",
5353
"@emotion/core": "^10.0.27",
5454
"@storybook/addon-actions": "^5.2.8",
5555
"@storybook/preset-typescript": "^1.2.0",
@@ -69,15 +69,15 @@
6969
"jest": "24.9.0",
7070
"react": "^16.6.3",
7171
"react-addons-test-utils": "^15.6.2",
72-
"react-docgen-typescript-loader": "^3.6.0",
72+
"react-docgen-typescript-loader": "^3.7.2",
7373
"react-dom": "^16.6.3",
7474
"react-testing-library": "^5.3.1",
7575
"regenerator-runtime": "^0.13.1",
7676
"rimraf": "^2.6.2",
7777
"standard": "^12.0.1",
7878
"styled-components": "^4.1.2",
7979
"ts-jest": "^24.2.0",
80-
"ts-loader": "^6.2.1",
80+
"ts-loader": "^8.0.11",
8181
"typescript": "^3.7.4",
8282
"webpack": "^4.26.1",
8383
"webpack-cli": "^3.1.2"

src/LoadingOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class LoadingOverlayWrapper extends PureComponent<LoadingOverLayProps, LoadingOv
3333

3434
componentDidUpdate (prevProps: LoadingOverLayProps) {
3535
const { active } = this.props
36-
if (active && this.wrapper && this.wrapper.current) this.wrapper.current.scrollTop = 0
36+
if (active && this.wrapper?.current) this.wrapper.current.scrollTop = 0
3737
}
3838

3939
/**

0 commit comments

Comments
 (0)