diff --git a/package.json b/package.json index d3286cad..35a27527 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "4.0.0", "scripts": { "postinstall": "npm run bootstrap", - "bootstrap": "lerna bootstrap --no-ci --hoist", + "bootstrap": "lerna bootstrap --no-ci", "clean": "lerna run clean && lerna clean --yes && rm -rf node_modules", "start": "npm run build && npm run start:quick", "start:quick": "dotenv lerna run start -- --parallel", diff --git a/react-demo/src/LoggedOutWrapper.tsx b/react-demo/src/LoggedOutWrapper.tsx index 7d91e2c2..96c476cb 100644 --- a/react-demo/src/LoggedOutWrapper.tsx +++ b/react-demo/src/LoggedOutWrapper.tsx @@ -19,7 +19,7 @@ const LoggedOutWrapper: FunctionComponent = ({ } if (isAuthorized) { - const {from} = location.state || {from: {pathname: '/'}}; + const {from} = (location.state as any) || {from: {pathname: '/'}}; console.log('Redirecting to', from); //eslint-disable-line return ; }