diff --git a/services/web/frontend/js/features/file-tree/controllers/file-tree-controller.js b/services/web/frontend/js/features/file-tree/controllers/file-tree-controller.js index e4122a5824..9cb76ee3fc 100644 --- a/services/web/frontend/js/features/file-tree/controllers/file-tree-controller.js +++ b/services/web/frontend/js/features/file-tree/controllers/file-tree-controller.js @@ -43,10 +43,12 @@ App.controller('ReactFileTreeController', function( $scope.onSelect = selectedEntities => { if (selectedEntities.length === 1) { const selectedEntity = selectedEntities[0] + const type = + selectedEntity.type === 'fileRef' ? 'file' : selectedEntity.type $scope.$emit('entity:selected', { id: selectedEntity.entity._id, name: selectedEntity.entity.name, - type: selectedEntity.type + type }) // in the react implementation there is no such concept as "1