Merge pull request woocommerce/woocommerce-admin#281 from woocommerce/fix/orders-panel
Orders Panel: Add default prop object.
This commit is contained in:
commit
4adebeb800
|
@ -111,4 +111,11 @@ OrdersPanel.propTypes = {
|
|||
orders: PropTypes.object.isRequired,
|
||||
};
|
||||
|
||||
OrdersPanel.defaultProps = {
|
||||
orders: {
|
||||
data: [],
|
||||
isLoading: false,
|
||||
},
|
||||
};
|
||||
|
||||
export default OrdersPanel;
|
||||
|
|
Loading…
Reference in New Issue