Copy files content button copies always content of first file
Summary
Button "copy file contents" copies always the content of the first file in snippets with multiple files.
Steps to reproduce
Create snippet with multiple files. Click on button "copy file contents" on another file than the first.
Example Project
Click on copy file contents of file 2 copies file content of file 1:
https://gitlab.com/-/snippets/2036884
What is the current bug behavior?
Copies always content of the first file in snippet.
What is the expected correct behavior?
Copy content of the file where the button is placed.
Output of checks
This bug happens on GitLab.com
Edited by Christian Höcherl