Fix type error

This commit is contained in:
Aarni Halinen
2020-07-03 15:21:30 +03:00
parent 5d26ec9e78
commit 51e27a4510
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -128,7 +128,6 @@
"react-beautiful-dnd": "10.1.1",
"react-helmet": "5.2.1",
"react-jsonschema-form": "^1.8.1",
"react-router": "4.3.1",
"react-router-dom": "4.3.1",
"react-router-hash-link": "1.2.1",
"shortid": "2.2.14",
+2 -1
View File
@@ -91,7 +91,8 @@ class AdminLoginPage extends React.Component<AdminLoginPageProps, AdminLoginPage
const { search } = location;
const params = qs.parse(search);
const { next } = params;
return next || DEFAULT_REDIRECT;
// TODO: Any change of next being string[]? We get type error on without the cast.
return next as string || DEFAULT_REDIRECT;
}
render() {