aboutsummaryrefslogtreecommitdiff
path: root/src/site/store
diff options
context:
space:
mode:
authorKana <[email protected]>2020-12-28 02:42:18 +0900
committerGitHub <[email protected]>2020-12-28 02:42:18 +0900
commit4334dda3f671d70102505625499e41b5e3b5190f (patch)
tree264886edf00890b9e45c55a32f928b179b393d49 /src/site/store
parentfeat: Add warning to nsfw albums (diff)
parentfix: nsfw album toggle doesn't propagate the changes properly (diff)
downloadhost.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.js4
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);