Fix compilation issue with prop

This commit is contained in:
Owen
2026-09-14 17:47:44 -04:00
parent 68821514a0
commit a4ade43380
3 changed files with 9 additions and 11 deletions
@@ -132,9 +132,10 @@ export default function Page() {
};
const res = await api
.put<
AxiosResponse<CreateClientResponse>
>(`/org/${orgId}/client`, payload)
.put<AxiosResponse<CreateClientResponse>>(
`/org/${orgId}/client`,
payload
)
.catch((e) => {
toast({
variant: "destructive",
@@ -406,7 +407,6 @@ export default function Page() {
id={olmId}
endpoint={env.app.dashboardUrl}
secret={olmSecret}
version={olmVersion}
/>
</>
)}
@@ -309,7 +309,6 @@ export default function CredentialsPage() {
id={displayNewtId ?? "**********"}
secret={displaySecret ?? "**************"}
endpoint={env.app.dashboardUrl}
version={newtVersion}
/>
</>
)}
@@ -196,8 +196,7 @@ export default function Page() {
const { data: latestVersions } = useQuery(
productUpdatesQueries.latestVersion(true)
);
const newtVersion =
latestVersions?.data?.newt?.latestVersion ?? "latest";
const newtVersion = latestVersions?.data?.newt?.latestVersion ?? "latest";
const [siteDefaults, setSiteDefaults] =
useState<PickSiteDefaultsResponse | null>(null);
@@ -285,9 +284,10 @@ export default function Page() {
}
const res = await api
.put<
AxiosResponse<CreateSiteResponse>
>(`/org/${orgId}/site/`, payload)
.put<AxiosResponse<CreateSiteResponse>>(
`/org/${orgId}/site/`,
payload
)
.catch((e) => {
toast({
variant: "destructive",
@@ -641,7 +641,6 @@ export default function Page() {
id={newtId}
secret={newtSecret}
endpoint={env.app.dashboardUrl}
version={newtVersion}
/>
</>
)}