mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #2966 from overleaf/cmg-jpa-tags-update-propagation
Remove tag in place instead of replacing array GitOrigin-RevId: 779577e8981e37508d20364903a843795c36dffe
This commit is contained in:
parent
48b138f227
commit
6050de114e
1 changed files with 3 additions and 2 deletions
|
@ -63,8 +63,9 @@ App.controller('TagListController', function($scope, $modal) {
|
|||
project.tags.splice(index, 1)
|
||||
}
|
||||
}
|
||||
// Remove tag
|
||||
$scope.tags = $scope.tags.filter(t => t !== tag)
|
||||
|
||||
// Remove tag in place to update the state everywhere
|
||||
$scope.tags.splice($scope.tags.indexOf(tag), 1)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue