feat : fixing dashboard analityc
This commit is contained in:
parent
89375f00b1
commit
19849e6088
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue