From 62be32619722accac472a5883f6a8dc2494acee8 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 6 Nov 2024 15:17:34 +0100 Subject: [PATCH] fix: :bug: env var is not required and securize submit --- frontend/views/Update.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/views/Update.vue b/frontend/views/Update.vue index 3a7c83a..4f2766b 100644 --- a/frontend/views/Update.vue +++ b/frontend/views/Update.vue @@ -43,7 +43,6 @@ v-model="environment" class="textarea" placeholder="DURATION=60s" - required > @@ -75,7 +74,7 @@ export default { return { custom_name: null as string | null, image: null as string | null, - environment: null as string | null, + environment: '', error: '', loading: false, } @@ -107,6 +106,7 @@ export default { }, methods: { async submit() { + if (!this.image || !(this.custom_name ?? this.container_name)) return try { this.loading = true const { data } = await axios.post(