mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-13 03:28:19 +00:00
use resourceGuid instead of resourceid
This commit is contained in:
@@ -46,7 +46,7 @@ export default async function ResourceLayout(props: ResourceLayoutProps) {
|
|||||||
try {
|
try {
|
||||||
const res = await internal.get<
|
const res = await internal.get<
|
||||||
AxiosResponse<GetResourceAuthInfoResponse>
|
AxiosResponse<GetResourceAuthInfoResponse>
|
||||||
>(`/resource/${resource.resourceId}/auth`, await authCookieHeader());
|
>(`/resource/${resource.resourceGuid}/auth`, await authCookieHeader());
|
||||||
authInfo = res.data.data;
|
authInfo = res.data.data;
|
||||||
} catch {
|
} catch {
|
||||||
redirect(`/${params.orgId}/settings/resources`);
|
redirect(`/${params.orgId}/settings/resources`);
|
||||||
|
|||||||
Reference in New Issue
Block a user