Skip to content

Commit

Permalink
add optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
anselmpaul committed Dec 8, 2020
1 parent 7920b2c commit 51eecf7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "npm run build-cjs && npm run build-es6 && npm run build-types && rimraf umd && npm run build-umd && npm run build-min",
"build-types": "tsc --emitDeclarationOnly",
"build-cjs": "rimraf lib && babel ./src -d lib --extensions \".ts,.tsx\"",
"build-es6": "rimraf es6 && babel ./src -d es6 --blacklist=es6.modules --extensions \".ts,.tsx\"",
"build-es6": "rimraf es6 && babel ./src -d es6 --extensions \".ts,.tsx\"",
"build-umd": "NODE_ENV=development webpack src/LoadingOverlay.tsx -o umd/index.js",
"build-min": "NODE_ENV=production webpack src/LoadingOverlay.tsx -o umd/index.min.js",
"storybook": "start-storybook -p 9001",
Expand Down Expand Up @@ -49,7 +49,7 @@
"@babel/plugin-syntax-class-properties": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.7.7",
"@babel/preset-typescript": "^7.12.7",
"@emotion/core": "^10.0.27",
"@storybook/addon-actions": "^5.2.8",
"@storybook/preset-typescript": "^1.2.0",
Expand All @@ -69,15 +69,15 @@
"jest": "24.9.0",
"react": "^16.6.3",
"react-addons-test-utils": "^15.6.2",
"react-docgen-typescript-loader": "^3.6.0",
"react-docgen-typescript-loader": "^3.7.2",
"react-dom": "^16.6.3",
"react-testing-library": "^5.3.1",
"regenerator-runtime": "^0.13.1",
"rimraf": "^2.6.2",
"standard": "^12.0.1",
"styled-components": "^4.1.2",
"ts-jest": "^24.2.0",
"ts-loader": "^6.2.1",
"ts-loader": "^8.0.11",
"typescript": "^3.7.4",
"webpack": "^4.26.1",
"webpack-cli": "^3.1.2"
Expand Down
2 changes: 1 addition & 1 deletion src/LoadingOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LoadingOverlayWrapper extends PureComponent<LoadingOverLayProps, LoadingOv

componentDidUpdate (prevProps: LoadingOverLayProps) {
const { active } = this.props
if (active && this.wrapper && this.wrapper.current) this.wrapper.current.scrollTop = 0
if (active && this.wrapper?.current) this.wrapper.current.scrollTop = 0
}

/**
Expand Down

0 comments on commit 51eecf7

Please sign in to comment.