Commit ff13911d authored by Samantha Ming's avatar Samantha Ming

Add check in repo compare when data is undefined

parent 3e7aee0e
......@@ -65,8 +65,8 @@ export default {
return axios
.get(endpoint)
.then(({ data }) => {
this.branches = data.Branches;
this.tags = data.Tags;
this.branches = data.Branches || [];
this.tags = data.Tags || [];
})
.catch(() => {
createFlash({
......
---
title: Safe guard repo compare when data is undefined
merge_request: 54371
author:
type: fixed
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