mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 07:41:13 +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,12 +205,10 @@ 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 });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async handleCreateSite(form: CreateSite) {
|
||||
const createRes = await HttpService.client.createSite(form);
|
||||
|
|
Loading…
Reference in a new issue