From 0d6cd1a7768cfc27fbb4283a206f7d781fa61a94 Mon Sep 17 00:00:00 2001 From: Jeff Stieler Date: Mon, 3 Dec 2018 20:01:49 -0700 Subject: [PATCH] Add report stats to the `wc-api` spec. --- plugins/woocommerce-admin/client/wc-api/wc-api-spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/woocommerce-admin/client/wc-api/wc-api-spec.js b/plugins/woocommerce-admin/client/wc-api/wc-api-spec.js index 2f6ada5a5b9..ba5d961d534 100644 --- a/plugins/woocommerce-admin/client/wc-api/wc-api-spec.js +++ b/plugins/woocommerce-admin/client/wc-api/wc-api-spec.js @@ -5,18 +5,21 @@ */ import notes from './notes'; import orders from './orders'; +import reportStats from './reports/stats'; function createWcApiSpec() { return { selectors: { ...notes.selectors, ...orders.selectors, + ...reportStats.selectors, }, operations: { read( resourceNames ) { return [ ...notes.operations.read( resourceNames ), ...orders.operations.read( resourceNames ), + ...reportStats.operations.read( resourceNames ), ]; }, },