Changes all documents to have an explicit type
This commit is contained in:
@@ -10,10 +10,7 @@ export const MonsterEditForm = ({ monster }: { monster: Monster }) => {
|
||||
await pb.collection("documents").update(monster.id, {
|
||||
data: {
|
||||
...monster.data,
|
||||
monster: {
|
||||
...monster.data.monster,
|
||||
name,
|
||||
},
|
||||
name,
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -22,7 +19,7 @@ export const MonsterEditForm = ({ monster }: { monster: Monster }) => {
|
||||
<div className="">
|
||||
<AutoSaveTextarea
|
||||
multiline={false}
|
||||
value={monster.data.monster.name}
|
||||
value={monster.data.name}
|
||||
onSave={saveMonsterName}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user