diff --git a/src/components/structures/LegacyCommunityPreview.tsx b/src/components/structures/LegacyCommunityPreview.tsx
index 92aea8bb7d..32bafeb3fa 100644
--- a/src/components/structures/LegacyCommunityPreview.tsx
+++ b/src/components/structures/LegacyCommunityPreview.tsx
@@ -28,7 +28,6 @@ import { linkifyElement } from "../../HtmlUtils";
import defaultDispatcher from "../../dispatcher/dispatcher";
import { Action } from "../../dispatcher/actions";
import { UserTab } from "../views/dialogs/UserSettingsDialog";
-import MainSplit from './MainSplit';
interface IProps {
groupId: string;
@@ -49,11 +48,11 @@ const LegacyCommunityPreview = ({ groupId }: IProps) => {
if (!groupSummary) {
return
-
+
;
}
@@ -70,7 +69,7 @@ const LegacyCommunityPreview = ({ groupId }: IProps) => {
return
-
+
-
+
;
};
diff --git a/src/components/structures/MainSplit.tsx b/src/components/structures/MainSplit.tsx
index 0148bfca91..af7645767d 100644
--- a/src/components/structures/MainSplit.tsx
+++ b/src/components/structures/MainSplit.tsx
@@ -24,7 +24,7 @@ import { Direction } from "re-resizable/lib/resizer";
interface IProps {
resizeNotifier: ResizeNotifier;
collapsedRhs?: boolean;
- panel: JSX.Element;
+ panel?: JSX.Element;
}
@replaceableComponent("structures.MainSplit")