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:
commit
44ea7dff0c
1 changed files with 5 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue