chore: add timeout mechanism for fetch calls (#3649)
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
import _ from 'lodash';
|
||||
import { createEntry } from 'ValueObjects/Entry';
|
||||
import { selectEntrySlug } from 'Reducers/collections';
|
||||
import { unsentRequest } from 'netlify-cms-lib-util';
|
||||
|
||||
const { fetchWithTimeout: fetch } = unsentRequest;
|
||||
|
||||
function getSlug(path) {
|
||||
return path
|
||||
|
@ -1,5 +1,8 @@
|
||||
import { pickBy, trimEnd } from 'lodash';
|
||||
import { addParams } from 'Lib/urlHelper';
|
||||
import { unsentRequest } from 'netlify-cms-lib-util';
|
||||
|
||||
const { fetchWithTimeout: fetch } = unsentRequest;
|
||||
|
||||
export default class AssetStore {
|
||||
constructor(config, getToken) {
|
||||
|
Reference in New Issue
Block a user