summaryrefslogtreecommitdiffstats
path: root/src/mixins/OrgChartsMixin.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/mixins/OrgChartsMixin.js')
-rw-r--r--src/mixins/OrgChartsMixin.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mixins/OrgChartsMixin.js b/src/mixins/OrgChartsMixin.js
index a16050da..d3877b77 100644
--- a/src/mixins/OrgChartsMixin.js
+++ b/src/mixins/OrgChartsMixin.js
@@ -19,16 +19,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+import { otherContacts } from '../utils/chartUtils'
+
export default {
methods: {
// The current component root
otherContacts(self) {
- return this.$store.getters.getSortedContacts.filter(
- ({ key }) => {
- const contact = this.$store.getters.getContact(key)
- return contact.addressbook.id === self.addressbook.id && contact.uid !== self.uid
- }
- )
+ return otherContacts({
+ $store: this.$store,
+ self,
+ },)
},
},
}