mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 04:49:37 +02:00
fix(adventure): add collection ID to adventure when creating a new adventure
This commit is contained in:
parent
4f7d408460
commit
7ec4e5d0f5
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', {
|
let res = await fetch('/api/adventures', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue