mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #3419 from overleaf/ta-select-file-type-fix
[ReactFileTree] Fix File Type for `entity:selected` Event GitOrigin-RevId: 61f6746048931c1729ff640ef89eb78cf3de2723
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user