Resource update working

This commit is contained in:
Owen Schwartz
2024-10-19 17:41:20 -04:00
parent 5d1db5413b
commit 94da55450e
5 changed files with 15 additions and 16 deletions

View File

@@ -11,11 +11,11 @@ type ResourcesPageProps = {
export default async function Page({ params }: ResourcesPageProps) {
let resources: ListResourcesResponse["resources"] = [];
try {
const res = await internal.get<AxiosResponse<ListResourcesResponse>>(
`/org/${params.orgId}/resources`,
authCookieHeader(),
);
resources = res.data.data.resources;
// const res = await internal.get<AxiosResponse<ListResourcesResponse>>(
// `/org/${params.orgId}/resources`,
// authCookieHeader(),
// );
// resources = res.data.data.resources;
} catch (e) {
console.error("Error fetching resources", e);
}