Test & fix the get defaults for sites

This commit is contained in:
Owen Schwartz
2024-10-26 17:23:48 -04:00
parent 7feb21e727
commit edcae190b2
3 changed files with 8 additions and 5 deletions

View File

@@ -76,7 +76,7 @@ export function CreateSiteForm() {
setIsLoading(false);
api
.get(`/site/pickSiteDefaults`)
.get(`/org/${orgId}/pickSiteDefaults`)
.catch((e) => {
toast({
title: "Error creating site..."
@@ -93,7 +93,8 @@ export function CreateSiteForm() {
const res = await api
.put(`/org/${orgId}/site/`, {
name: data.name,
// subdomain: data.subdomain,
subnet: siteDefaults?.subnet,
exitNodeId: siteDefaults?.exitNodeId,
pubKey: keypair?.publicKey,
})
.catch((e) => {