diff --git a/dist/lf-ng-md-file-input.js b/dist/lf-ng-md-file-input.js index 0597d22..c855f8d 100644 --- a/dist/lf-ng-md-file-input.js +++ b/dist/lf-ng-md-file-input.js @@ -598,7 +598,7 @@ }); var onFileChanged = function(files) { - if(files.length <= 0){ + if(files.length <= 0 || !scope.lfFiles || !scope.lfFiles.map){ //Check for scope.lfFiles.map needed because if file is set to NULL, map doesn't exist return; } var names = scope.lfFiles.map(function(obj){