From e57e0d7de83ac01e2d4af2894f1a416046d40eca Mon Sep 17 00:00:00 2001 From: dannyrb Date: Tue, 12 May 2020 15:28:20 -0400 Subject: [PATCH] Pass DataSource as prop to LayoutTemplate --- platform/viewer/src/routes/DataSourceWrapper.jsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/platform/viewer/src/routes/DataSourceWrapper.jsx b/platform/viewer/src/routes/DataSourceWrapper.jsx index 7411cdf24..32dc8fafe 100644 --- a/platform/viewer/src/routes/DataSourceWrapper.jsx +++ b/platform/viewer/src/routes/DataSourceWrapper.jsx @@ -38,8 +38,6 @@ function DataSourceWrapper(props) { const firstWebApiDataSource = webApiDataSources[0]; const dataSource = firstWebApiDataSource.createDataSource(dataSourceConfig); - console.log(dataSource, 'dsm'); - // Route props --> studies.mapParams // mapParams --> studies.search // studies.search --> studies.processResults @@ -68,9 +66,17 @@ function DataSourceWrapper(props) { }, [history.location.search]); // queryFilterValues + // TODO: Better way to pass DataSource? return ( - {data && } + {data && ( + + )} ); }