Skip to content

Commit

Permalink
fix: client-react - query prop now has default blank value (#54)
Browse files Browse the repository at this point in the history
No need to pass redundant blank query to QueryBuilder.
Also, mark cubejsApi prop as required.
  • Loading branch information
keydunov authored and paveltiunov committed Mar 18, 2019
1 parent b074a3d commit 27e7090
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cubejs-react/src/QueryRenderer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,12 @@ export default class QueryRenderer extends React.Component {
QueryRenderer.propTypes = {
render: PropTypes.func,
afterRender: PropTypes.func,
cubejsApi: PropTypes.object,
cubejsApi: PropTypes.object.isRequired,
query: PropTypes.object,
queries: PropTypes.object,
loadSql: PropTypes.any
};

QueryRender.defaultProps = {
query: {}
}

0 comments on commit 27e7090

Please sign in to comment.