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 { ...@@ -65,8 +65,8 @@ export default {
return axios return axios
.get(endpoint) .get(endpoint)
.then(({ data }) => { .then(({ data }) => {
this.branches = data.Branches; this.branches = data.Branches || [];
this.tags = data.Tags; this.tags = data.Tags || [];
}) })
.catch(() => { .catch(() => {
createFlash({ 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