Update dependency "apollo-client" to v4.x
v4.1.6
This commit is contained in:
@@ -132,7 +132,7 @@ export function Backup() {
|
||||
|
||||
const backupFileUrl = backupFileResponse.data?.createBackup.url;
|
||||
if (!backupFileUrl) {
|
||||
makeToast(t`Could not create backup`, 'error', getErrorMessage(backupFileResponse.errors));
|
||||
makeToast(t`Could not create backup`, 'error', getErrorMessage(backupFileResponse.error));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -149,9 +149,14 @@ export function Backup() {
|
||||
|
||||
const validateBackup = async (file: File) => {
|
||||
try {
|
||||
const {
|
||||
data: { validateBackup: validateBackupData },
|
||||
} = await requestManager.validateBackupFile(file, { fetchPolicy: 'network-only' }).response;
|
||||
const validateBackupResponse = await requestManager.validateBackupFile(file, {
|
||||
fetchPolicy: 'network-only',
|
||||
}).response;
|
||||
const validateBackupData = validateBackupResponse.data?.validateBackup;
|
||||
|
||||
if (!validateBackupData) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (validateBackupData.missingSources.length || validateBackupData.missingTrackers.length) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user