diff --git a/src/pages/_error.tsx b/src/pages/_error.tsx index 2e8588e1..a55333c4 100644 --- a/src/pages/_error.tsx +++ b/src/pages/_error.tsx @@ -60,10 +60,10 @@ function ErrorPage(props: any) { )} - {errors[code].title} + {errors[code]?.title || errors[500].title} - {errors[code].message} + {errors[code]?.message || errors[500].message} <br /> {code != 1 && ( <Button diff --git a/src/pages/teams/[team]/manage/members.tsx b/src/pages/teams/[team]/manage/members.tsx index fe9517a9..7650555e 100644 --- a/src/pages/teams/[team]/manage/members.tsx +++ b/src/pages/teams/[team]/manage/members.tsx @@ -253,31 +253,6 @@ const Settings = () => { > <SettingsTabs team={router.query.team?.toString() || ''} loading={!(builders && managers)}> <SearchInput onSearch={setFilter} inputProps={{ placeholder: 'Filter...' }} /> - <Title order={3} mt="md"> - Builders - - - b.username? b.username?.toLowerCase().includes(filter.toLowerCase()):true, - ) - : [] - } - actions={(data) => ( - - handleRemoveBuilder(data)} - loading={loadingManagers} - > - - - - )} - /> @@ -295,7 +270,9 @@ const Settings = () => { loading={!managers} data={ managers - ? managers.filter((b: any) => b.username.toLowerCase().includes(filter.toLowerCase())) + ? managers.filter((b: any) => + b.username?.toLowerCase().includes(filter.toLowerCase()), + ) : [] } actions={(data) => ( @@ -332,6 +309,31 @@ const Settings = () => { </Table.Td> )} /> + <Title order={3} mt="md"> + Builders + + + b.username ? b.username?.toLowerCase().includes(filter.toLowerCase()) : true, + ) + : [] + } + actions={(data) => ( + + handleRemoveBuilder(data)} + loading={loadingManagers} + > + + + + )} + /> );