File tree 2 files changed +195
-91
lines changed
2 files changed +195
-91
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
12
12
import queryString from 'query-string' ;
13
13
import Inspector from './inspector' ;
14
14
import { __ , sprintf } from '@wordpress/i18n' ;
15
- import { apiFetch as apiRequest } from '@wordpress/api-fetch' ;
15
+ import apiFetch from '@wordpress/api-fetch' ;
16
16
import { Component , Fragment } from '@wordpress/element' ;
17
17
import {
18
18
unescapeHTML ,
@@ -128,7 +128,7 @@ class Editor extends Component {
128
128
loading : true ,
129
129
} ) ;
130
130
131
- apiRequest ( {
131
+ apiFetch ( {
132
132
path : `/feedzy/v1/feed?${ url } ` ,
133
133
method : 'POST' ,
134
134
data : this . props . attributes ,
@@ -163,7 +163,7 @@ class Editor extends Component {
163
163
}
164
164
165
165
loadCategories ( ) {
166
- apiRequest ( { path : '/wp/v2/feedzy_categories?per_page=100' } )
166
+ apiFetch ( { path : '/wp/v2/feedzy_categories?per_page=100' } )
167
167
. then ( ( data ) => {
168
168
if ( this . unmounting ) {
169
169
return data ;
You can’t perform that action at this time.
0 commit comments