don't sent orgId in createClient
This commit is contained in:
parent
6c22a2aeb4
commit
a4d3a5ad4d
1 changed files with 4 additions and 3 deletions
|
@ -24,6 +24,7 @@ import { AxiosResponse } from "axios";
|
|||
import { Collapsible } from "@app/components/ui/collapsible";
|
||||
import { ClientRow } from "./ClientsTable";
|
||||
import {
|
||||
CreateClientBody,
|
||||
CreateClientResponse,
|
||||
PickClientDefaultsResponse
|
||||
} from "@server/routers/client";
|
||||
|
@ -167,11 +168,11 @@ export default function CreateClientForm({
|
|||
const payload = {
|
||||
name: data.name,
|
||||
siteId: data.siteId,
|
||||
orgId,
|
||||
subnet: clientDefaults.subnet,
|
||||
olmId: clientDefaults.olmId,
|
||||
secret: clientDefaults.olmSecret,
|
||||
olmId: clientDefaults.olmId
|
||||
};
|
||||
type: "olm"
|
||||
} as CreateClientBody;
|
||||
|
||||
const res = await api
|
||||
.put<
|
||||
|
|
Loading…
Add table
Reference in a new issue