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