@@ -32,7 +32,6 @@ import { useSpeciesContext } from '$components/common/app-context';
3232import { getColorLegend } from '$utils/data/color' ;
3333import { MdContent } from '$components/common/md-content' ;
3434import { HealpixArrowDestineData } from '$utils/data/healpix' ;
35- import { useKeycloak } from '$components/auth/context' ;
3635
3736const ChartsSection = React . lazy ( ( ) => import ( './charts' ) ) ;
3837
@@ -59,7 +58,6 @@ export default function Component(props: SpeciesComponentProps) {
5958 const {
6059 params : { id }
6160 } = props ;
62- const { hasDPADAccess } = useKeycloak ( ) ;
6361 const { group, setGroup, setDestineYear, destineLayer } = useSpeciesContext ( ) ;
6462
6563
@@ -69,7 +67,6 @@ export default function Component(props: SpeciesComponentProps) {
6967 } ) ;
7068
7169 const { data : seasonalData } = useQuery ( {
72- enabled : hasDPADAccess ,
7370 queryKey : [ 'species' , id , 'csv' ] ,
7471 queryFn : getCsvFn ( `/destine/ifs-nemo-${ id } -weighted-seasonal.csv` ) ,
7572 select : selectCsvChartData
@@ -87,7 +84,7 @@ export default function Component(props: SpeciesComponentProps) {
8784 queryFn : requestSpeciesArrowFn ( group ?. file )
8885 } ) ;
8986
90- const destineDataEnabled = ! ! group ?. id && hasDPADAccess && ! ! destineLayer ;
87+ const destineDataEnabled = ! ! group ?. id && ! ! destineLayer ;
9188 const { data : destineArrowData } = useQuery ( {
9289 enabled : destineDataEnabled ,
9390 queryKey : [ 'species' , id , 'arrow-destine' , group ?. id ] ,
0 commit comments