fix ( middleware )

deskripsi:
- fix access api melalui middleware di: home, profile dan portofolio
This commit is contained in:
2025-01-08 10:39:18 +08:00
parent 18bd4efed1
commit cccb011da5
36 changed files with 1206 additions and 450 deletions

View File

@@ -19,7 +19,7 @@ export default function ListPortofolioProfileNew() {
try {
setLoading(true)
const response = await apiGetPortofolioByProfile(`?profile=${param.id}&cat=profile`)
if (response.success) {
if (response) {
setDataPortofolio(response.data);
}
} catch (error) {

View File

@@ -65,7 +65,7 @@ export default function ProfileDetail() {
try {
setLoading(true);
const response = await apiGetUserProfile(`?profile=${param.id}`);
if (response.success) {
if (response) {
setDataProfile(response.data);
}
} catch (error) {