Fix type error
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user