Skip to content

Commit

Permalink
Fix props destructuring error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherCFleming committed Jan 28, 2022
1 parent 7265a18 commit 65ae1a6
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ const propTypes = {
templateParams: PropTypes.string,
};


const ExploreCtasResultsButton = (
function ExploreCtasResultsButton({
table,
schema,
dbId,
templateParams,
errorMessage,
{ createCtasDatasource, addInfoToast, addDangerToast } = actions,
) => {
actions,
}) {
const { createCtasDatasource, addInfoToast, addDangerToast } = actions;
const buildVizOptions = {
datasourceName: table,
schema,
Expand Down Expand Up @@ -86,7 +86,7 @@ const ExploreCtasResultsButton = (
{t('Explore')}
</Button>
);
};
}
ExploreCtasResultsButton.propTypes = propTypes;

const mapStateToProps = ({ sqlLab, common }) => ({
Expand Down

0 comments on commit 65ae1a6

Please sign in to comment.