1
0

fix: archiving a list

This commit is contained in:
kolaente
2022-06-30 18:04:41 +02:00
parent 8eed0be072
commit 2b8a786825
4 changed files with 34 additions and 19 deletions

View File

@ -60,7 +60,7 @@ export const store = createStore({
state.loadingModule = module
},
[CURRENT_LIST](state, currentList) {
// Server updates don't return the right. Therefore the right is reset after updating the list which is
// Server updates don't return the right. Therefore, the right is reset after updating the list which is
// confusing because all the buttons will disappear in that case. To prevent this, we're keeping the right
// when updating the list in global state.
if (typeof state.currentList.maxRight !== 'undefined' && (typeof currentList.maxRight === 'undefined' || currentList.maxRight === null)) {