mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-04 09:46:40 +00:00
don't sent orgId in createClient
This commit is contained in:
@@ -24,6 +24,7 @@ import { AxiosResponse } from "axios";
|
|||||||
import { Collapsible } from "@app/components/ui/collapsible";
|
import { Collapsible } from "@app/components/ui/collapsible";
|
||||||
import { ClientRow } from "./ClientsTable";
|
import { ClientRow } from "./ClientsTable";
|
||||||
import {
|
import {
|
||||||
|
CreateClientBody,
|
||||||
CreateClientResponse,
|
CreateClientResponse,
|
||||||
PickClientDefaultsResponse
|
PickClientDefaultsResponse
|
||||||
} from "@server/routers/client";
|
} from "@server/routers/client";
|
||||||
@@ -167,11 +168,11 @@ export default function CreateClientForm({
|
|||||||
const payload = {
|
const payload = {
|
||||||
name: data.name,
|
name: data.name,
|
||||||
siteId: data.siteId,
|
siteId: data.siteId,
|
||||||
orgId,
|
|
||||||
subnet: clientDefaults.subnet,
|
subnet: clientDefaults.subnet,
|
||||||
|
olmId: clientDefaults.olmId,
|
||||||
secret: clientDefaults.olmSecret,
|
secret: clientDefaults.olmSecret,
|
||||||
olmId: clientDefaults.olmId
|
type: "olm"
|
||||||
};
|
} as CreateClientBody;
|
||||||
|
|
||||||
const res = await api
|
const res = await api
|
||||||
.put<
|
.put<
|
||||||
|
|||||||
Reference in New Issue
Block a user