From 019a9cb47eccff32d66b23f7ec268e3047411655 Mon Sep 17 00:00:00 2001 From: Stephen Oni Date: Thu, 14 Dec 2023 15:11:04 +0000 Subject: [PATCH] Update index.tsx --- pages/[org]/[dataset]/r/[resource]/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/[org]/[dataset]/r/[resource]/index.tsx b/pages/[org]/[dataset]/r/[resource]/index.tsx index e2cc381..24862ed 100644 --- a/pages/[org]/[dataset]/r/[resource]/index.tsx +++ b/pages/[org]/[dataset]/r/[resource]/index.tsx @@ -17,6 +17,7 @@ import { ErrorMessage } from '../../../../../components/_shared'; import FourOhFour from '../../../../404'; const Resource: React.FC<{ variables: any }> = ({ variables }) => { + console.log('======= FRONTEND ERROR LOG =========='); const { t } = useTranslation('common'); const { data, loading, error } = useQuery(GET_DATASET_QUERY, { variables, @@ -28,6 +29,7 @@ const Resource: React.FC<{ variables: any }> = ({ variables }) => { return ( ); + console.log('======= FRONTEND ERROR DATASET =========='); if (!data?.dataset) { console.log('======= FROTEND DATASET NOT AVAILABLE =========='); return ; @@ -37,7 +39,7 @@ const Resource: React.FC<{ variables: any }> = ({ variables }) => { const resource = result.resources.find( (item) => item.name === variables.resource ); - + console.log('======= FRONTEND ERROR RESOURCE =========='); if (!resource) { console.log('======= FROTEND RESOURCE NOT AVAILABLE =========='); return ;