From 69e1aba86f99b8404b8dc877bbc1eb3eec9eff66 Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Wed, 20 May 2020 10:18:18 -0400 Subject: [PATCH] Merge pull request #2836 from overleaf/em-as-ns-fix-ng-repeat Fix ng-repeat error when uploading two files with the same name GitOrigin-RevId: 6de85f54c1f497dfb980f4ed4c41efc2d9942277 --- services/web/app/views/project/editor/new-file-modal.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/views/project/editor/new-file-modal.pug b/services/web/app/views/project/editor/new-file-modal.pug index 9e8ff7f8ec..9ab6832f12 100644 --- a/services/web/app/views/project/editor/new-file-modal.pug +++ b/services/web/app/views/project/editor/new-file-modal.pug @@ -57,7 +57,7 @@ script(type='text/ng-template', id='newFileModalTemplate') p.text-center | The following files already exist in this project: ul.text-center.list-unstyled.row-spaced-small - li(ng-repeat="conflict in conflicts"): strong {{ conflict }} + li(ng-repeat="conflict in conflicts track by $index"): strong {{ conflict }} p.text-center.row-spaced-small | Do you want to overwrite them? p.text-center