From 33d4b08e2c4e811daa9d782ba7efcbeeed2deca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 17 Dec 2018 09:26:43 +0100 Subject: [PATCH] Fix add new prop if allowed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/components/ContactDetails/ContactDetailsAddNewProp.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ContactDetails/ContactDetailsAddNewProp.vue b/src/components/ContactDetails/ContactDetailsAddNewProp.vue index d63501dbd..7562a9a7c 100644 --- a/src/components/ContactDetails/ContactDetailsAddNewProp.vue +++ b/src/components/ContactDetails/ContactDetailsAddNewProp.vue @@ -73,7 +73,7 @@ export default { availableProperties() { return Object.keys(rfcProps.properties) // only allow to add multiple properties OR props that are not yet in the contact - .filter(prop => prop.multiple || this.usedProperties.indexOf(prop) === -1) + .filter(key => rfcProps.properties[key].multiple || this.usedProperties.indexOf(key) === -1) // usable array of objects .map(key => { return {