Skip to content

Commit

Permalink
Simplify with optional chaining on line 94 and clean up buildVizOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherCFleming committed Feb 2, 2022
1 parent 65ae1a6 commit 93d1ec2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function ExploreCtasResultsButton({
};

const visualize = () => {
createCtasDatasource(buildVizOptions())
createCtasDatasource(buildVizOptions)
.then(data => {
const formData = {
datasource: `${data.table_id}__table`,
Expand Down Expand Up @@ -91,7 +91,7 @@ ExploreCtasResultsButton.propTypes = propTypes;

const mapStateToProps = ({ sqlLab, common }) => ({
errorMessage: sqlLab.errorMessage,
timeout: common.conf ? common.conf.SUPERSET_WEBSERVER_TIMEOUT : null,
timeout: common.conf?.SUPERSET_WEBSERVER_TIMEOUT,
});

const mapDispatchToProps = dispatch => ({
Expand Down

0 comments on commit 93d1ec2

Please sign in to comment.