diff --git a/frontend/src/business/components/api/test/ApiTestConfig.vue b/frontend/src/business/components/api/test/ApiTestConfig.vue index 80cb3b5036..1929790b1c 100644 --- a/frontend/src/business/components/api/test/ApiTestConfig.vue +++ b/frontend/src/business/components/api/test/ApiTestConfig.vue @@ -88,10 +88,9 @@ methods: { init() { let projectId; - this.isReadOnly = false; - if (!checkoutTestManagerOrTestUser()) { - this.isReadOnly = true; - } + + this.isReadOnly = !checkoutTestManagerOrTestUser(); + if (this.id) { this.create = false; this.getTest(this.id);