From 7ec4e5d0f56efca02e8cd094c77c15fbd50dbe0a Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Wed, 18 Jun 2025 10:20:30 -0400 Subject: [PATCH] fix(adventure): add collection ID to adventure when creating a new adventure --- frontend/src/lib/components/AdventureModal.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/lib/components/AdventureModal.svelte b/frontend/src/lib/components/AdventureModal.svelte index c097871..504a360 100644 --- a/frontend/src/lib/components/AdventureModal.svelte +++ b/frontend/src/lib/components/AdventureModal.svelte @@ -456,6 +456,11 @@ } } + // add this collection to the adventure + if (collection && collection.id) { + adventure.collections = [collection.id]; + } + let res = await fetch('/api/adventures', { method: 'POST', headers: {