Commit 4ae39ceb authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Add key for v-for in repo_commit_section

parent db355041
...@@ -5,7 +5,7 @@ import Api from '../api' ...@@ -5,7 +5,7 @@ import Api from '../api'
const RepoCommitSection = { const RepoCommitSection = {
data: () => Store, data: () => Store,
methods: { methods: {
makeCommit() { makeCommit() {
// see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions // see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
...@@ -59,7 +59,7 @@ export default RepoCommitSection; ...@@ -59,7 +59,7 @@ export default RepoCommitSection;
<label class="col-md-4 control-label">Staged files ({{changedFiles.length}})</label> <label class="col-md-4 control-label">Staged files ({{changedFiles.length}})</label>
<div class="col-md-4"> <div class="col-md-4">
<ul class="list-unstyled"> <ul class="list-unstyled">
<li v-for="file in changedFiles"> <li v-for="file in changedFiles" :key="file.id">
<span class="help-block"> <span class="help-block">
{{file.url}} {{file.url}}
</span> </span>
...@@ -119,4 +119,4 @@ export default RepoCommitSection; ...@@ -119,4 +119,4 @@ export default RepoCommitSection;
</fieldset> </fieldset>
</form> </form>
</div> </div>
</template> </template>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment