diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-03-28 14:01:22 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-03-28 14:01:22 +0100 |
commit | 5cfe270faf7a79d9ada40d97222966530052e4d9 (patch) | |
tree | 6b7ae04e0866ac4210e0a7a9a4cfd7dedaf8f57e | |
parent | a20695d1960fbbd5d4402304fb293de2a8882fef (diff) |
Properly group grouper properties
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r-- | src/components/ContactDetails/ContactDetailsProperty.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ContactDetails/ContactDetailsProperty.vue b/src/components/ContactDetails/ContactDetailsProperty.vue index 7776935e..7ed39cfa 100644 --- a/src/components/ContactDetails/ContactDetailsProperty.vue +++ b/src/components/ContactDetails/ContactDetailsProperty.vue @@ -101,7 +101,7 @@ export default { // is this the first property of its kind isFirstProperty() { if (this.index > 0) { - return this.sortedProperties[this.index - 1].name !== this.propName + return this.sortedProperties[this.index - 1].name.split('.').pop() !== this.propName } return true }, @@ -109,7 +109,7 @@ export default { isLastProperty() { // array starts at 0, length starts at 1 if (this.index < this.sortedProperties.length - 1) { - return this.sortedProperties[this.index + 1].name !== this.propName + return this.sortedProperties[this.index + 1].name.split('.').pop() !== this.propName } return true }, |