diff --git a/frontend/src/_helpers/appUtils.js b/frontend/src/_helpers/appUtils.js index 0bb88f81a6..6785d98e7c 100644 --- a/frontend/src/_helpers/appUtils.js +++ b/frontend/src/_helpers/appUtils.js @@ -226,7 +226,7 @@ function getQueryVariables(options, state) { } export function previewQuery(_ref, query) { - const options = getQueryVariables(query.options, _ref.state.currentState); + const options = getQueryVariables(query.options, _ref.props.currentState); _ref.setState({ previewLoading: true });