Fixed scene actor stashes not filtered down. Fixed logout redirect not waiting for session destroy.
This commit is contained in:
parent
ccf6c26789
commit
6f6cbf4c1b
|
@ -177,7 +177,7 @@ function search() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function logout() {
|
async function logout() {
|
||||||
del('/session');
|
await del('/session');
|
||||||
navigate('/login', null, { redirect: true });
|
navigate('/login', null, { redirect: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ function curateScene(rawScene, assets) {
|
||||||
} : null,
|
} : null,
|
||||||
actors: sortActorsByGender(assets.actors.map((actor) => curateActor(actor, {
|
actors: sortActorsByGender(assets.actors.map((actor) => curateActor(actor, {
|
||||||
sceneDate: rawScene.effective_date,
|
sceneDate: rawScene.effective_date,
|
||||||
stashes: assets.actorStashes,
|
stashes: assets.actorStashes.filter((actorStash) => actorStash.actor_id === actor.id),
|
||||||
})), { title: rawScene.title }),
|
})), { title: rawScene.title }),
|
||||||
directors: assets.directors.map((director) => ({
|
directors: assets.directors.map((director) => ({
|
||||||
id: director.id,
|
id: director.id,
|
||||||
|
|
Loading…
Reference in New Issue