From: Dessalines Date: Thu, 4 Mar 2021 03:42:11 +0000 (-0500) Subject: Fixing an issue with remove categories X-Git-Url: http://these/git/%7B%60https:/%24%7Bargs.pageFn.jump%20n%7D?a=commitdiff_plain;h=b778ca8e2269d9ec2c0ab8a4329fae51e540a7a4;p=lemmy-ui.git Fixing an issue with remove categories --- diff --git a/src/shared/components/create-community.tsx b/src/shared/components/create-community.tsx index e1a9cf8..4817f40 100644 --- a/src/shared/components/create-community.tsx +++ b/src/shared/components/create-community.tsx @@ -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 { 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 { 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() {