feat : fixing dashboard analityc

This commit is contained in:
hanif salafi 2025-06-24 09:55:38 +07:00
parent 89375f00b1
commit 19849e6088
1 changed files with 15 additions and 15 deletions

View File

@ -71,22 +71,22 @@ export default function DashboardVisualization() {
setIsInternational(updatedIsInternational);
};
useEffect(() => {
async function fetchUrl() {
console.log("Fetch tableau");
const urlView = `${url + ticket1}/${view1}${param}`;
console.log("Fetch tableau ", urlView);
const urlRender = await fetch(urlView)
.then((response) => {
console.log("Tableau res : ", response);
})
.catch((error) => {
console.log("Tableau error: ", error);
});
}
// useEffect(() => {
// async function fetchUrl() {
// console.log("Fetch tableau");
// const urlView = `${url + ticket1}/${view1}${param}`;
// console.log("Fetch tableau ", urlView);
// const urlRender = await fetch(urlView)
// .then((response) => {
// console.log("Tableau res : ", response);
// })
// .catch((error) => {
// console.log("Tableau error: ", error);
// });
// }
fetchUrl();
}, [ticket1]);
// fetchUrl();
// }, [ticket1]);
return (
<div className="flex flex-col gap-2 bg-white rounded-lg p-3">