Merge pull request #3501 from overleaf/ta-file-tree-linked

[ReactFileTree] Pass All attributes in entity:selected Event

GitOrigin-RevId: c05864784618a0bfe6b5d9553c56513888c71156
This commit is contained in:
Timothée Alby 2021-01-05 11:57:07 +01:00 committed by Copybot
parent 8c7bf5fbd2
commit 2f178f3aa9

View file

@ -46,8 +46,8 @@ App.controller('ReactFileTreeController', function(
const type = const type =
selectedEntity.type === 'fileRef' ? 'file' : selectedEntity.type selectedEntity.type === 'fileRef' ? 'file' : selectedEntity.type
$scope.$emit('entity:selected', { $scope.$emit('entity:selected', {
...selectedEntity.entity,
id: selectedEntity.entity._id, id: selectedEntity.entity._id,
name: selectedEntity.entity.name,
type type
}) })