Skip to content

Commit

Permalink
Update Data. usage in pivot report.
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Jun 20, 2024
1 parent 9e1a4c2 commit 2db4ad0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions assets/js/modules/analytics-4/datastore/pivot-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Internal dependencies
*/
import API from 'googlesitekit-api';
import Data from 'googlesitekit-data';
import { commonActions, combineStores } from 'googlesitekit-data';
import { createFetchStore } from '../../../googlesitekit/data/create-fetch-store';
import { MODULES_ANALYTICS_4 } from './constants';
import { stringifyObject } from '../../../util';
Expand Down Expand Up @@ -58,7 +58,7 @@ const baseInitialState = {

const baseResolvers = {
*getPivotReport( options = {} ) {
const registry = yield Data.commonActions.getRegistry();
const registry = yield commonActions.getRegistry();
const existingReport = registry
.select( MODULES_ANALYTICS_4 )
.getPivotReport( options );
Expand Down Expand Up @@ -98,7 +98,7 @@ const baseSelectors = {
},
};

const store = Data.combineStores( fetchGetReportStore, {
const store = combineStores( fetchGetReportStore, {
initialState: baseInitialState,
resolvers: baseResolvers,
selectors: baseSelectors,
Expand Down
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
}
},
"exclude": [
"node_modules"
"coverage",
"dist",
"node_modules",
"php-scoper",
"third-party",
"vendor",
]
}

0 comments on commit 2db4ad0

Please sign in to comment.