Merge branch 'cache' of https://github.com/LemmyNet/lemmy-ui into cache

This commit is contained in:
SleeplessOne1917 2023-06-29 09:34:52 -04:00
commit 49c52985c3
2 changed files with 4 additions and 4 deletions

View file

@ -284,7 +284,9 @@ export class Communities extends Component<any, CommunitiesState> {
handleSearchSubmit(i: Communities, event: any) { handleSearchSubmit(i: Communities, event: any) {
event.preventDefault(); event.preventDefault();
const searchParamEncoded = encodeURIComponent(i.state.searchText); 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({ static async fetchInitialData({

View file

@ -205,12 +205,10 @@ export class Setup extends Component<any, State> {
const data = i.state.registerRes.data; const data = i.state.registerRes.data;
UserService.Instance.login(data); UserService.Instance.login(data);
if (UserService.Instance.jwtInfo) {
i.setState({ doneRegisteringUser: true }); i.setState({ doneRegisteringUser: true });
} }
} }
} }
}
async handleCreateSite(form: CreateSite) { async handleCreateSite(form: CreateSite) {
const createRes = await HttpService.client.createSite(form); const createRes = await HttpService.client.createSite(form);