From e968560862ad974ea7cba2f6449006cf33978ecb Mon Sep 17 00:00:00 2001 From: Meng Zhu Date: Wed, 25 Oct 2023 12:45:57 +0200 Subject: [PATCH] create dataproduct --- components/dataproducts/newDataproductForm.tsx | 16 ---------------- components/lib/detailTypography.tsx | 2 +- lib/schema/graphql.ts | 2 -- nada-frontend.iml | 9 +++++++++ 4 files changed, 10 insertions(+), 19 deletions(-) create mode 100644 nada-frontend.iml diff --git a/components/dataproducts/newDataproductForm.tsx b/components/dataproducts/newDataproductForm.tsx index 9dea786a..d0691c44 100644 --- a/components/dataproducts/newDataproductForm.tsx +++ b/components/dataproducts/newDataproductForm.tsx @@ -110,15 +110,9 @@ export const NewDataproductForm = () => { CREATE_DATAPRODUCT, { onCompleted: (data) => { - if (createDataset) { - router.push( - `/dataproduct/${data.createDataproduct.id}/${data.createDataproduct.slug}/new` - ) - } else { router.push( `/dataproduct/${data.createDataproduct.id}/${data.createDataproduct.slug}` ) - } } } ) @@ -214,16 +208,6 @@ export const NewDataproductForm = () => { > Lagre dataprodukt - diff --git a/components/lib/detailTypography.tsx b/components/lib/detailTypography.tsx index e8ecb514..707bacfe 100644 --- a/components/lib/detailTypography.tsx +++ b/components/lib/detailTypography.tsx @@ -17,7 +17,7 @@ export const Description = ({ } return (
- {dataproduct.datasets.length== 0 && Det er ikke noe datasett i dataproduktet. Vil du legg til et datasett?} + {dataproduct.datasets.length== 0 && Det er ikke noe datasett i dataproduktet. Vil du legg til et datasett?} diff --git a/lib/schema/graphql.ts b/lib/schema/graphql.ts index 0932a06a..78f49fc0 100644 --- a/lib/schema/graphql.ts +++ b/lib/schema/graphql.ts @@ -668,8 +668,6 @@ export type NewBigQuery = { /** NewDataproduct contains metadata for creating a new dataproduct */ export type NewDataproduct = { - /** datasets to associate with the dataproduct. */ - datasets: Array; /** description of the dataproduct */ description?: InputMaybe; /** owner group email for the dataproduct. */ diff --git a/nada-frontend.iml b/nada-frontend.iml new file mode 100644 index 00000000..8021953e --- /dev/null +++ b/nada-frontend.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file