mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-12-23 22:58:17 -05:00
fix(adventure): add collection ID to adventure when creating a new adventure
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user