diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue index d9f821600..d242037b8 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/Create.vue @@ -50,7 +50,7 @@ export default { }, data() { return { - type: 'person' //by default + type: null } }, computed: { @@ -62,7 +62,10 @@ export default { get() { return this.type; } - } + }, + }, + mounted() { + this.type = (this.allowedTypes.length === 1 && this.allowedTypes.includes('thirdparty')) ? 'thirdparty' : 'person' }, methods: { isActive(tab) {