Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit12e5a42

Browse files
committed
Throw error if no default org
1 parentd7afcfc commit12e5a42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎site/src/pages/ManagementSettingsPage/GroupsPage/GroupsPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { getErrorMessage } from "api/errors";
88
import{groups}from"api/queries/groups";
99
import{organizationPermissions}from"api/queries/organizations";
1010
importtype{Organization}from"api/typesGenerated";
11-
import{EmptyState}from"components/EmptyState/EmptyState";
1211
import{displayError}from"components/GlobalSnackbar/utils";
1312
import{Loader}from"components/Loader/Loader";
1413
import{PageHeader,PageHeaderTitle}from"components/PageHeader/PageHeader";
@@ -56,7 +55,8 @@ export const GroupsPage: FC = () => {
5655
if(defaultName){
5756
return<Navigateto={`/organizations/${defaultName}/groups`}replace/>;
5857
}
59-
return<EmptyStatemessage="No default organization found"/>;
58+
// We expect there to always be a default organization.
59+
thrownewError("No default organization found")
6060
}
6161

6262
constpermissions=permissionsQuery.data;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp