fix a type error

This commit is contained in:
2025-05-11 17:03:28 +02:00
parent 972b9251c3
commit ae89704380
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "adventurers-guild", "name": "adventurers-guild",
"version": "0.14.1", "version": "0.14.2",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
+2 -2
View File
@@ -22,9 +22,9 @@ export default defineComponent({
}), }),
props: { props: {
adventurers: { adventurers: {
type: Object as PropType<{ [key: string]: Adventurer }>, type: Object as PropType<Array<Adventurer>>,
default() { default() {
return {} as { [key: string]: Adventurer }; return [] as Array<Adventurer>;
}, },
}, },
}, },