From cbc88490b843ba1e0f842f3358be92d82fe6d8b7 Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Tue, 20 Sep 2022 14:34:53 +0200 Subject: [PATCH] fix: Make cube checker work with data source --- app/pages/_cube-checker.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/pages/_cube-checker.tsx b/app/pages/_cube-checker.tsx index 8c6855b63..36b21d561 100644 --- a/app/pages/_cube-checker.tsx +++ b/app/pages/_cube-checker.tsx @@ -11,7 +11,12 @@ import StreamClient from "sparql-http-client"; import { ContentLayout } from "@/components/layout"; import { DataSource } from "@/configurator"; -import { DEFAULT_DATA_SOURCE, parseDataSource } from "@/domain/datasource"; +import { + DEFAULT_DATA_SOURCE, + parseDataSource, + sourceToLabel, + useDataSourceState, +} from "@/domain/datasource"; import { SOURCES_BY_LABEL } from "@/domain/datasource/constants"; import { fromStream } from "@/rdf/sparql-client"; @@ -151,6 +156,7 @@ const checks: Check[] = [ ]; const Page: NextPage = ({ checks, cubeIri }) => { + const [datasource] = useDataSourceState(); return ( <> @@ -180,6 +186,11 @@ const Page: NextPage = ({ checks, cubeIri }) => { }), }} /> +