]> Untitled Git - lemmy.git/commitdiff
Admin-settings page fix. (#1031)
authorDessalines <dessalines@users.noreply.github.com>
Mon, 27 Jul 2020 15:54:59 +0000 (11:54 -0400)
committerGitHub <noreply@github.com>
Mon, 27 Jul 2020 15:54:59 +0000 (11:54 -0400)
ui/src/components/admin-settings.tsx

index 179ae54458325d0e9ed9c517a71cf2cee86a489c..825c11bd55a27cf39b20d7d8d78ad32ea7cd15f2 100644 (file)
@@ -102,7 +102,9 @@ export class AdminSettings extends Component<any, AdminSettingsState> {
         ) : (
           <div class="row">
             <div class="col-12 col-md-6">
-              <SiteForm site={this.state.siteRes.site} />
+              {this.state.siteRes.site.id && (
+                <SiteForm site={this.state.siteRes.site} />
+              )}
               {this.admins()}
               {this.bannedUsers()}
             </div>