From 1f98ee3ce5d13fa1fb39fe09470eec4af8b1c53f Mon Sep 17 00:00:00 2001 From: Avery Smith Date: Mon, 26 Aug 2024 15:47:04 -0400 Subject: [PATCH] WCMS-22086: refactored table-control property --- src/templates/Dataset/index.tsx | 4 ++-- src/types/dataset.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates/Dataset/index.tsx b/src/templates/Dataset/index.tsx index 4c23b520..cf8cb282 100644 --- a/src/templates/Dataset/index.tsx +++ b/src/templates/Dataset/index.tsx @@ -60,7 +60,7 @@ const Dataset = ({ defaultPageSize = 25, dataDictionaryCSV = false, dataDictionaryBanner = false, - datasetTableControls = false, + disableTableControls = false, } : DatasetPageType) => { const options = location.search ? { ...qs.parse(location.search, { ignoreQueryPrefix: true }) } @@ -195,7 +195,7 @@ const Dataset = ({ rootUrl: rootUrl, customColumns: customColumns, dataDictionaryBanner: (dataDictionaryBanner && displayDataDictionaryTab), - datasetTableControls: datasetTableControls + datasetTableControls: !disableTableControls }}> diff --git a/src/types/dataset.ts b/src/types/dataset.ts index 6fda5885..cce91826 100644 --- a/src/types/dataset.ts +++ b/src/types/dataset.ts @@ -70,7 +70,7 @@ export type DatasetPageType = { defaultPageSize: Number, dataDictionaryCSV: boolean, dataDictionaryBanner: boolean, - datasetTableControls: boolean, + disableTableControls: boolean, }