diff --git a/src/Widgets/VisualizationViewWidget.jsx b/src/Widgets/VisualizationViewWidget.jsx index cb15f5d..2e2576f 100644 --- a/src/Widgets/VisualizationViewWidget.jsx +++ b/src/Widgets/VisualizationViewWidget.jsx @@ -1,9 +1,22 @@ +import React from 'react'; import { connect } from 'react-redux'; import config from '@plone/volto/registry'; import { pickMetadata } from '@eeacms/volto-embed/helpers'; import Tableau from '@eeacms/volto-tableau/Tableau/Tableau'; function VisualizationViewWidget(props) { + const { staticParameters = [] } = props.value; + + const extraOptions = React.useMemo(() => { + const options = {}; + staticParameters.forEach((parameter) => { + if (parameter.field && parameter.value) { + options[parameter.field] = parameter.value; + } + }); + return options; + }, [staticParameters]); + return (