From c570cc4d87fe7f48ffc53774a1e04b2ee8144218 Mon Sep 17 00:00:00 2001 From: Riccardo Date: Sun, 7 Jul 2024 22:01:55 +0200 Subject: [PATCH] refactor: rename folder --- app/{costumer-form => customer-form}/[id]/page.tsx | 0 app/{costumer-form => customer-form}/page.tsx | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) rename app/{costumer-form => customer-form}/[id]/page.tsx (100%) rename app/{costumer-form => customer-form}/page.tsx (98%) diff --git a/app/costumer-form/[id]/page.tsx b/app/customer-form/[id]/page.tsx similarity index 100% rename from app/costumer-form/[id]/page.tsx rename to app/customer-form/[id]/page.tsx diff --git a/app/costumer-form/page.tsx b/app/customer-form/page.tsx similarity index 98% rename from app/costumer-form/page.tsx rename to app/customer-form/page.tsx index 6839057..65b0924 100644 --- a/app/costumer-form/page.tsx +++ b/app/customer-form/page.tsx @@ -32,7 +32,9 @@ export default function Modules() { (async () => { const response = await axios.get('/api/protected/customer-form'); - const validatedResponse = CustomerFormListSchema.safeParse(response.data); + const validatedResponse = CustomerFormListSchema.safeParse( + response.data.data + ); if (!validatedResponse.success) { console.error(validatedResponse.error);