Update dependency "apollo-client" to v4.x
v4.1.6
This commit is contained in:
@@ -28,7 +28,10 @@ export const ImagesSettings = () => {
|
||||
|
||||
const clearCache = async () => {
|
||||
try {
|
||||
await Promise.all([triggerClearServerCache(), ImageCache.clearAll()]);
|
||||
await Promise.all([
|
||||
triggerClearServerCache({ variables: { input: { cachedPages: true, cachedThumbnails: true } } }),
|
||||
ImageCache.clearAll(),
|
||||
]);
|
||||
makeToast(t`Cleared the cache`, 'success');
|
||||
} catch (e) {
|
||||
makeToast(t`Could not clear the cache`, 'error', getErrorMessage(e));
|
||||
|
||||
@@ -51,6 +51,7 @@ export const getMetadataServerSettings = async (): Promise<MetadataServerSetting
|
||||
const { data, error } = await requestManager.getGlobalMeta().response;
|
||||
|
||||
if (error) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-throw-literal
|
||||
throw error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user