filemanager: only call callback if it is a function

This commit is contained in:
Johannes Zellner
2021-02-01 18:20:25 +01:00
parent cd4b6c448c
commit f420107704

View File

@@ -757,7 +757,7 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
$timeout(function () {
$scope.textEditor.unsaved = false;
$scope.textEditor.busy = false;
if (callback) return callback();
if (typeof callback === 'function') return callback();
}, 1000);
});
},