From 9954ba1ee4779ce96783c9b32d8209a65aadf72f Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 26 Apr 2024 21:47:36 +0200 Subject: [PATCH] Lint Select form field --- resources/js/components/form/Select.vue | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/resources/js/components/form/Select.vue b/resources/js/components/form/Select.vue index 1b9b713b..0e43a1f2 100644 --- a/resources/js/components/form/Select.vue +++ b/resources/js/components/form/Select.vue @@ -85,8 +85,8 @@ export default { return Array.isArray(this.options) ? this.options : map(this.options, (value, key) => { - return {name: value, id: key}; - }); + return { name: value, id: key }; + }); }, }, mounted() { @@ -103,15 +103,6 @@ export default { trigger(v) { this.$emit('update:modelValue', /^[0-9]+$/.test(v.target.value) ? parseInt(v.target.value) : v.target.value ? v.target.value : null); }, - clear() { - this.$emit('update:modelValue', null); - }, }, }; - -