mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-28 23:31:14 +00:00
Merge branch 'cache' of https://github.com/LemmyNet/lemmy-ui into cache
This commit is contained in:
commit
49c52985c3
2 changed files with 4 additions and 4 deletions
|
@ -284,7 +284,9 @@ export class Communities extends Component<any, CommunitiesState> {
|
|||
handleSearchSubmit(i: Communities, event: any) {
|
||||
event.preventDefault();
|
||||
const searchParamEncoded = encodeURIComponent(i.state.searchText);
|
||||
i.context.router.history.push(`/search?q=${searchParamEncoded}`);
|
||||
i.context.router.history.push(
|
||||
`/search?q=${searchParamEncoded}&type=Communities`
|
||||
);
|
||||
}
|
||||
|
||||
static async fetchInitialData({
|
||||
|
|
|
@ -205,9 +205,7 @@ export class Setup extends Component<any, State> {
|
|||
const data = i.state.registerRes.data;
|
||||
|
||||
UserService.Instance.login(data);
|
||||
if (UserService.Instance.jwtInfo) {
|
||||
i.setState({ doneRegisteringUser: true });
|
||||
}
|
||||
i.setState({ doneRegisteringUser: true });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue