1
0

Fix loading a list when it was already partially saved in vuex

This commit is contained in:
kolaente
2021-07-10 12:45:36 +02:00
parent a6842d959b
commit 7fa94a9bd5
2 changed files with 11 additions and 7 deletions

View File

@ -116,7 +116,7 @@ export const store = new Vuex.Store({
// 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') {
if (typeof state.currentList.maxRight !== 'undefined' && (typeof currentList.maxRight === 'undefined' || currentList.maxRight === null)) {
currentList.maxRight = state.currentList.maxRight
}
state.currentList = currentList