1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 04:49:37 +02:00

Merge pull request #677 from seanmorley15/development

fix(adventure): add collection ID to adventure when creating a new ad…
This commit is contained in:
Sean Morley 2025-06-18 10:23:02 -04:00 committed by GitHub
commit 44ea7dff0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: {