diff --git a/pages/[org]/[dataset]/r/[resource]/index.tsx b/pages/[org]/[dataset]/r/[resource]/index.tsx index ffca87c..e2cc381 100644 --- a/pages/[org]/[dataset]/r/[resource]/index.tsx +++ b/pages/[org]/[dataset]/r/[resource]/index.tsx @@ -28,14 +28,20 @@ const Resource: React.FC<{ variables: any }> = ({ variables }) => { return ( ); - if (!data?.dataset) return ; + if (!data?.dataset) { + console.log('======= FROTEND DATASET NOT AVAILABLE =========='); + return ; + } const { result } = data.dataset; // Find right resource const resource = result.resources.find( (item) => item.name === variables.resource ); - if (!resource) return ; + if (!resource) { + console.log('======= FROTEND RESOURCE NOT AVAILABLE =========='); + return ; + } fixTranslations(result); fixTranslations(result.organization);