Fix import from fs

This commit is contained in:
Girish Ramakrishnan
2022-04-05 11:33:33 -07:00
parent 6e68cf3b01
commit b2aae4f7b3

View File

@@ -1943,8 +1943,8 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
var backupConfig;
try {
backupConfig = JSON.parse(result.target.result);
if (backupConfig.provider === 'filesystem') { // patch the backupId to have the full path
backupConfig.backupId = backupConfig.backupFolder + '/' + backupConfig.backupId;
if (backupConfig.provider === 'filesystem') { // patch the remotePath to have the full path
backupConfig.remotePath = backupConfig.backupFolder + '/' + backupConfig.remotePath;
delete backupConfig.backupFolder;
}
} catch (e) {