add var to fileAggType
@@ -596,7 +596,7 @@ function bindFileBrowserItemEvents() {
}
menu = $("#right-click-menu");
- fileAggType = [];
+ var fileAggType = [];
// main-file is available on the aggregation folder and only single file aggregations have a data-pk of 1 on the file
if ($(event.target).closest("li").attr("main-file") || $(event.target).closest("li").attr("data-pk") === "1"){
var fileAggType = $(event.target).closest("li").find("span.fb-logical-file-type").attr("data-logical-file-type");
