Skip to content

Commit eb511ed

Browse files
committed
fix: add name as required on body type
1 parent 8a9e266 commit eb511ed

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

frontend/common/types/requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export type UpdateProjectBody = {
3838
}
3939

4040
export type UpdateOrganisationBody = {
41-
name?: string
41+
name: string
4242
force_2fa?: boolean
4343
restrict_project_create_to_admin?: boolean
4444
webhook_notification_email?: string | null

frontend/web/components/pages/organisation-settings/tabs/general-tab/sections/admin-settings/Force2FASetting.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const Force2FASetting = ({ organisation }: Force2FASettingProps) => {
1515
await updateOrganisationWithToast(
1616
{
1717
force_2fa: !organisation.force_2fa,
18+
name: organisation.name,
1819
},
1920
organisation.id,
2021
)

frontend/web/components/pages/organisation-settings/tabs/general-tab/sections/admin-settings/RestrictProjectCreationSetting.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const RestrictProjectCreationSetting = ({
2121
const handleToggle = async () => {
2222
await updateOrganisationWithToast(
2323
{
24+
name: organisation.name,
2425
restrict_project_create_to_admin:
2526
!organisation.restrict_project_create_to_admin,
2627
},

0 commit comments

Comments
 (0)