diff --git a/packages/sections/src/credibleSet/GWASColoc/Body.tsx b/packages/sections/src/credibleSet/GWASColoc/Body.tsx index 71cbb9a35..59ee550a7 100644 --- a/packages/sections/src/credibleSet/GWASColoc/Body.tsx +++ b/packages/sections/src/credibleSet/GWASColoc/Body.tsx @@ -220,7 +220,7 @@ function Body({ studyLocusId, entity }: BodyProps): ReactElement { getData().then(r => { setRequest(r); }); - }, []); + }, [studyLocusId]); return ( { setRequest(r); }); - }, []); + }, [studyLocusId]); return ( { setRequest(r); }); - }, []); + }, [studyLocusId]); const columns = getColumns({ leadVariantId, diff --git a/packages/sections/src/disease/GWASStudies/Body.tsx b/packages/sections/src/disease/GWASStudies/Body.tsx index e8cc92a8f..b625b2f02 100644 --- a/packages/sections/src/disease/GWASStudies/Body.tsx +++ b/packages/sections/src/disease/GWASStudies/Body.tsx @@ -136,7 +136,7 @@ function Body({ id: efoId, label: diseaseName }: BodyProps): ReactElement { getData().then(r => { setRequest(r); }); - }, []); + }, [efoId]); return ( { setRequest(r); }); - }, []); + }, [id]); return ( { setRequest(r); }); - }, []); + }, [studyId]); const columns = getColumns(diseaseIds); diff --git a/packages/sections/src/variant/GWASCredibleSets/Body.tsx b/packages/sections/src/variant/GWASCredibleSets/Body.tsx index b8840da86..de0c31015 100644 --- a/packages/sections/src/variant/GWASCredibleSets/Body.tsx +++ b/packages/sections/src/variant/GWASCredibleSets/Body.tsx @@ -262,7 +262,7 @@ function Body({ id, entity }: BodyProps) { getAllGwasData().then(r => { setRequest(r); }); - }, []); + }, [id]); return ( { setRequest(r); }); - }, []); + }, [id]); return (