Skip to content

Commit

Permalink
Fix for demos
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-konshin committed Apr 3, 2020
1 parent 9e24982 commit bd67116
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion react-demo/src/LoggedOutWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const LoggedOutWrapper: FunctionComponent<LoggedOutWrapperProps> = ({
}

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 <Redirect to={from} />;
}
Expand Down

0 comments on commit bd67116

Please sign in to comment.