From 912d1317d598b3a230f2c6dd510cb15b51aa851c Mon Sep 17 00:00:00 2001 From: Alfredo Sumaran Date: Wed, 31 May 2017 16:22:12 -0500 Subject: Put extra chars length on a constant for readability --- app/assets/javascripts/groups/components/group_item.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/assets/javascripts/groups/components/group_item.vue') diff --git a/app/assets/javascripts/groups/components/group_item.vue b/app/assets/javascripts/groups/components/group_item.vue index 64800a6ae10..a4bf11f3321 100644 --- a/app/assets/javascripts/groups/components/group_item.vue +++ b/app/assets/javascripts/groups/components/group_item.vue @@ -72,8 +72,9 @@ export default { const bfn = this.baseGroup.fullName; const length = bfn.length; const start = gfn.indexOf(bfn); + const extraPrefixChars = 3; - fullPath = gfn.substr(start + length + 3); + fullPath = gfn.substr(start + length + extraPrefixChars); } else { fullPath = this.group.fullName; } -- cgit v1.2.1