From 1c685b8d6e221fe22aa1695a5493c22b961569f3 Mon Sep 17 00:00:00 2001 From: SazukinPavel Date: Fri, 10 May 2024 19:26:39 +0400 Subject: [PATCH] fix create keyweb --- admin-ui/src/components/modules/keyweb/instanceCreate.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin-ui/src/components/modules/keyweb/instanceCreate.vue b/admin-ui/src/components/modules/keyweb/instanceCreate.vue index 2ceb6090a..6177156a9 100644 --- a/admin-ui/src/components/modules/keyweb/instanceCreate.vue +++ b/admin-ui/src/components/modules/keyweb/instanceCreate.vue @@ -46,6 +46,7 @@ label="Price model" item-text="title" item-value="uuid" + return-object :value="instance.billing_plan" @change="setValue('billing_plan', $event)" :items="plans" @@ -148,7 +149,9 @@ const rules = ref({ }); const billingPlan = computed(() => - plans.value.find((p) => p.uuid === instance.value.billing_plan) + instance.value.billing_plan.uuid + ? instance.value.billing_plan + : plans.value.find((p) => p.uuid === instance.value.billing_plan) ); const fullProduct = computed(() => billingPlan.value?.products[product.value]);