feat: enhance adventure handling with user ID support in serializers and attachment view; refactor saveEdit function and clean up Avatar component

This commit is contained in:
Sean Morley
2025-01-22 08:36:02 -05:00
parent 3f30819d25
commit 0eb4bc706a
6 changed files with 199 additions and 186 deletions

View File

@@ -91,6 +91,9 @@ export const actions: Actions = {
body: formData
});
let data = await res.json();
console.log(res);
console.log(data);
return data;
}
};

View File

@@ -102,9 +102,11 @@
await getGpxFiles();
});
function saveEdit(event: CustomEvent<Adventure>) {
async function saveEdit(event: CustomEvent<Adventure>) {
adventure = event.detail;
isEditModalOpen = false;
geojson = null;
await getGpxFiles();
}
</script>