Skip to content

Commit

Permalink
Merge pull request #1355 from Datawheel/cms-view-data-override
Browse files Browse the repository at this point in the history
adds viewData and viewDataFormat config options
  • Loading branch information
jhmullen authored Mar 2, 2022
2 parents fb8abb5 + 04cb546 commit a3d8a57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cms/src/components/Viz/Viz.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ class Viz extends Component {
key="option-key"
component={{section, viz: this}}
dataAttachments={vizConfig.dataAttachments}
data={vizConfig.data}
dataFormat={vizProps.dataFormat}
data={vizConfig.viewData || vizConfig.data}
dataFormat={vizConfig.viewDataFormat || vizProps.dataFormat}
slug={slug }
title={title || sectionTitle || slug}
iconOnly={size && size.width < 320 ? true : false}
Expand Down

0 comments on commit a3d8a57

Please sign in to comment.