diff --git a/ui/src/organizations/actions/orgs.ts b/ui/src/organizations/actions/orgs.ts index c18036f3b32..595477addee 100644 --- a/ui/src/organizations/actions/orgs.ts +++ b/ui/src/organizations/actions/orgs.ts @@ -186,9 +186,9 @@ export const createOrgWithBucket = ( dispatch(addOrg(createdOrg)) dispatch(push(`/orgs/${createdOrg.id}`)) - bucket.orgID = createdOrg.id - - const bucketResp = await api.postBucket({data: bucket}) + const bucketResp = await api.postBucket({ + data: {...bucket, orgID: createdOrg.id}, + }) if (bucketResp.status !== 201) { throw new Error(bucketResp.data.message)