mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #1933 from overleaf/spd-leave-project-without-tags
Fix crash when leaving a project with no tags GitOrigin-RevId: fcbbea5907d3e967785e3f21de039f02bc2123c0
This commit is contained in:
parent
b86f46a4f8
commit
67c0a3c2a4
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,7 @@ define(['base', 'main/project-list/services/project-list'], function(App) {
|
|||
} else {
|
||||
$scope._removeProjectFromList(project)
|
||||
|
||||
for (let tag of project.tags) {
|
||||
for (let tag of project.tags || []) {
|
||||
$scope._removeProjectIdsFromTagArray(tag, [project._id])
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue