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:
Simon Detheridge 2019-07-02 10:05:32 +01:00 committed by sharelatex
parent b86f46a4f8
commit 67c0a3c2a4

View file

@ -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])
}