diff options
| author | Zephyrrus <[email protected]> | 2020-12-27 18:18:06 +0200 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-12-27 18:58:58 +0200 |
| commit | 13058d99d658c0920ce75b79d6b24df18a873ea9 (patch) | |
| tree | 264886edf00890b9e45c55a32f928b179b393d49 /src/site/store/albums.js | |
| parent | feat: Add warning to nsfw albums (diff) | |
| download | host.fuwn.me-13058d99d658c0920ce75b79d6b24df18a873ea9.tar.xz host.fuwn.me-13058d99d658c0920ce75b79d6b24df18a873ea9.zip | |
fix: nsfw album toggle doesn't propagate the changes properly
fix: add nsfw flag to the booleanFields in knex postProcessResponse
Diffstat (limited to 'src/site/store/albums.js')
| -rw-r--r-- | src/site/store/albums.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/site/store/albums.js b/src/site/store/albums.js index b109af6..bbd2db6 100644 --- a/src/site/store/albums.js +++ b/src/site/store/albums.js @@ -127,8 +127,8 @@ export const mutations = { const link = state.albumDetails[albumId].links[foundIndex]; state.albumDetails[albumId].links[foundIndex] = { ...link, ...linkOpts }; }, - updateNsfw(state, { albumId, value }) { - state.list.find(el => el.id === albumId).nsfw = value; + updateNsfw(state, { albumId, nsfw }) { + state.list.find(el => el.id === albumId).nsfw = nsfw; }, removeAlbumLink(state, { albumId, identifier }) { const foundIndex = state.albumDetails[albumId].links.findIndex(({ identifier: id }) => id === identifier); |