Przeglądaj źródła

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
Eric Mc Sween 6 lat temu
rodzic
commit
69e1aba86f

+ 1 - 1
services/web/app/views/project/editor/new-file-modal.pug

@@ -57,7 +57,7 @@ script(type='text/ng-template', id='newFileModalTemplate')
 							p.text-center
 							p.text-center
 								| The following files already exist in this project:
 								| The following files already exist in this project:
 							ul.text-center.list-unstyled.row-spaced-small
 							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
 							p.text-center.row-spaced-small
 								| Do you want to overwrite them?
 								| Do you want to overwrite them?
 							p.text-center
 							p.text-center