File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import {
14
14
ElementType ,
15
15
getRequestParamFromList ,
16
16
fetchEnv ,
17
+ backendFetchJson ,
18
+ backendFetch ,
17
19
} from '@gridsuite/commons-ui' ;
18
20
19
21
const PREFIX_USER_ADMIN_SERVER_QUERIES =
@@ -118,21 +120,11 @@ function safeFetch(url, initCopy) {
118
120
) ;
119
121
}
120
122
121
- export function backendFetch ( url , init , token ) {
122
- const initCopy = prepareRequest ( init , token ) ;
123
- return safeFetch ( url , initCopy ) ;
124
- }
125
-
126
123
export function backendFetchText ( url , init , token ) {
127
124
const initCopy = prepareRequest ( init , token ) ;
128
125
return safeFetch ( url , initCopy ) . then ( ( safeResponse ) => safeResponse . text ( ) ) ;
129
126
}
130
127
131
- export function backendFetchJson ( url , init , token ) {
132
- const initCopy = prepareRequest ( init , token ) ;
133
- return safeFetch ( url , initCopy ) . then ( ( safeResponse ) => safeResponse . json ( ) ) ;
134
- }
135
-
136
128
const getContingencyUriParamType = ( contingencyListType ) => {
137
129
switch ( contingencyListType ) {
138
130
case ContingencyListType . SCRIPT . id :
You can’t perform that action at this time.
0 commit comments