refactor: rename folder
This commit is contained in:
@@ -32,7 +32,9 @@ export default function Modules() {
|
|||||||
(async () => {
|
(async () => {
|
||||||
const response = await axios.get('/api/protected/customer-form');
|
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) {
|
if (!validatedResponse.success) {
|
||||||
console.error(validatedResponse.error);
|
console.error(validatedResponse.error);
|
||||||
Reference in New Issue
Block a user