Commit ab62b1a4 authored by Phil Hughes's avatar Phil Hughes

Merge branch '342689-fix-undefined-error' into 'master'

Fix undefined error in project_templates_spec.rb

See merge request gitlab-org/gitlab!72121
parents 1b4e0a1e c2e10867
...@@ -107,7 +107,9 @@ export default { ...@@ -107,7 +107,9 @@ export default {
this.groupToFilterBy = this.userGroups.find( this.groupToFilterBy = this.userGroups.find(
(group) => getIdFromGraphQLId(group.id) === groupId, (group) => getIdFromGraphQLId(group.id) === groupId,
); );
this.setNamespace(this.groupToFilterBy); if (this.groupToFilterBy) {
this.setNamespace(this.groupToFilterBy);
}
}, },
setNamespace({ id, fullPath }) { setNamespace({ id, fullPath }) {
this.selectedNamespace = { this.selectedNamespace = {
......
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