diff --git a/resources/pages/home/components/select_menu.vue b/resources/pages/home/components/select_menu.vue index c377830..2abe6a1 100644 --- a/resources/pages/home/components/select_menu.vue +++ b/resources/pages/home/components/select_menu.vue @@ -16,11 +16,11 @@ const group = inject('group', false) const model = defineModel({ required: true }) const display = computed(() => { - if (Array.isArray(model.value) && model.length > 0) { - return `${model.length} selected` + if (Array.isArray(model.value) && model.value.length > 0) { + return `${model.value.length} selected` } - if (model) { + if (model.value) { const option = props.options.find((option) => option.value === model.value) if (option) return option.label } diff --git a/resources/tsconfig.json b/resources/tsconfig.json index f0e0aa1..64756d6 100644 --- a/resources/tsconfig.json +++ b/resources/tsconfig.json @@ -10,14 +10,14 @@ "moduleResolution": "Bundler", "paths": { "@/*": ["./*"], - "~/*": ["../*"] + "~/*": ["../*"], }, "resolveJsonModule": true, "types": ["vite/client"], "allowSyntheticDefaultImports": true, "esModuleInterop": true, "verbatimModuleSyntax": true, - "skipLibCheck": true + "skipLibCheck": true, }, - "include": ["env.d.ts", "./**/*.ts", "./**/*.vue"] + "include": ["env.d.ts", "./**/*.ts", "./**/*.vue"], } diff --git a/tsconfig.json b/tsconfig.json index 165c5cf..c5b2150 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,11 +15,11 @@ "#validators/*": ["./app/validators/*.js"], "#start/*": ["./start/*.js"], "#config/*": ["./config/*.js"], - "#types/*": ["./types/*.js"] + "#types/*": ["./types/*.js"], }, "resolveJsonModule": true, - "outDir": "./build" + "outDir": "./build", }, "include": ["./**/*"], - "exclude": ["./resources/**/*"] + "exclude": ["./resources/**/*"], }