Changes all documents to have an explicit type

This commit is contained in:
2025-06-27 21:58:58 -07:00
parent 611eaca5b6
commit c00eb1d965
29 changed files with 309 additions and 363 deletions

View File

@@ -10,10 +10,7 @@ export const LocationEditForm = ({ location }: { location: Location }) => {
await pb.collection("documents").update(location.id, {
data: {
...location.data,
location: {
...location.data.location,
name,
},
name,
},
});
}
@@ -22,10 +19,7 @@ export const LocationEditForm = ({ location }: { location: Location }) => {
await pb.collection("documents").update(location.id, {
data: {
...location.data,
location: {
...location.data.location,
description,
},
description,
},
});
}
@@ -34,11 +28,11 @@ export const LocationEditForm = ({ location }: { location: Location }) => {
<div className="">
<AutoSaveTextarea
multiline={false}
value={location.data.location.name}
value={location.data.name}
onSave={saveLocationName}
/>
<AutoSaveTextarea
value={location.data.location.description}
value={location.data.description}
onSave={saveLocationDescription}
/>
</div>