Merge pull request woocommerce/woocommerce-admin#281 from woocommerce/fix/orders-panel

Orders Panel: Add default prop object.
This commit is contained in:
Timmy Crawford 2018-08-07 17:12:07 -07:00 committed by GitHub
commit 4adebeb800
1 changed files with 7 additions and 0 deletions

View File

@ -111,4 +111,11 @@ OrdersPanel.propTypes = {
orders: PropTypes.object.isRequired,
};
OrdersPanel.defaultProps = {
orders: {
data: [],
isLoading: false,
},
};
export default OrdersPanel;