Skip to content

Commit

Permalink
WCMS-22086: refactored table-control property
Browse files Browse the repository at this point in the history
  • Loading branch information
averysmithproductions committed Aug 26, 2024
1 parent d301bca commit 1f98ee3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/templates/Dataset/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) }
Expand Down Expand Up @@ -195,7 +195,7 @@ const Dataset = ({
rootUrl: rootUrl,
customColumns: customColumns,
dataDictionaryBanner: (dataDictionaryBanner && displayDataDictionaryTab),
datasetTableControls: datasetTableControls
datasetTableControls: !disableTableControls
}}>
<DataTableStateWrapper />
</DataTableContext.Provider>
Expand Down
2 changes: 1 addition & 1 deletion src/types/dataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type DatasetPageType = {
defaultPageSize: Number,
dataDictionaryCSV: boolean,
dataDictionaryBanner: boolean,
datasetTableControls: boolean,
disableTableControls: boolean,
}


Expand Down

0 comments on commit 1f98ee3

Please sign in to comment.