diff options
| author | Kana <[email protected]> | 2020-12-28 02:42:18 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-28 02:42:18 +0900 |
| commit | 4334dda3f671d70102505625499e41b5e3b5190f (patch) | |
| tree | 264886edf00890b9e45c55a32f928b179b393d49 /src/site/store | |
| parent | feat: Add warning to nsfw albums (diff) | |
| parent | fix: nsfw album toggle doesn't propagate the changes properly (diff) | |
| download | host.fuwn.me-4334dda3f671d70102505625499e41b5e3b5190f.tar.xz host.fuwn.me-4334dda3f671d70102505625499e41b5e3b5190f.zip | |
Merge pull request #231 from Zephyrrus/dev
fix: nsfw album toggle doesn't propagate the state change properly
Diffstat (limited to 'src/site/store')
| -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); |