fix ( middleware )
deskripsi: - fix access api melalui middleware di: home, profile dan portofolio
This commit is contained in:
@@ -26,7 +26,7 @@ export function UiMap_MapBoxViewNew({ mapboxToken, }: { mapboxToken: string }) {
|
||||
try {
|
||||
setLoading(true)
|
||||
const response = await apiGetAllMap()
|
||||
if (response.success) {
|
||||
if (response) {
|
||||
setData(response.data)
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user