mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 15:51:14 +00:00
Fixing an issue with remove categories
This commit is contained in:
parent
c79f10688e
commit
b778ca8e22
1 changed files with 3 additions and 16 deletions
|
@ -3,16 +3,8 @@ import { Subscription } from "rxjs";
|
|||
import { CommunityForm } from "./community-form";
|
||||
import { HtmlTags } from "./html-tags";
|
||||
import { Spinner } from "./icon";
|
||||
import {
|
||||
CommunityView,
|
||||
SiteView,
|
||||
} from "lemmy-js-client";
|
||||
import {
|
||||
setIsoData,
|
||||
toast,
|
||||
wsSubscribe,
|
||||
isBrowser,
|
||||
} from "../utils";
|
||||
import { CommunityView, SiteView } from "lemmy-js-client";
|
||||
import { setIsoData, toast, wsSubscribe, isBrowser } from "../utils";
|
||||
import { UserService } from "../services";
|
||||
import { i18n } from "../i18next";
|
||||
|
||||
|
@ -26,7 +18,7 @@ export class CreateCommunity extends Component<any, CreateCommunityState> {
|
|||
private subscription: Subscription;
|
||||
private emptyState: CreateCommunityState = {
|
||||
site_view: this.isoData.site_res.site_view,
|
||||
loading: true,
|
||||
loading: false,
|
||||
};
|
||||
constructor(props: any, context: any) {
|
||||
super(props, context);
|
||||
|
@ -40,11 +32,6 @@ export class CreateCommunity extends Component<any, CreateCommunityState> {
|
|||
toast(i18n.t("not_logged_in"), "danger");
|
||||
this.context.router.history.push(`/login`);
|
||||
}
|
||||
|
||||
// Only fetch the data if coming from another route
|
||||
if (this.isoData.path == this.context.router.route.match.url) {
|
||||
this.state.loading = false;
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
|
Loading…
Reference in a new issue