it is working now

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-07-05 11:05:56 +02:00
committed by Julius Härtl
parent c6d16f4c16
commit 408ea69272
5 changed files with 9 additions and 9 deletions

View File

@@ -53,6 +53,7 @@ export default {
}
},
deleteStack(state, stack) {
let existingIndex = state.stacks.findIndex(_stack => _stack.id === stack.id)
if (existingIndex !== -1) {
state.stacks.splice(existingIndex, 1)
@@ -61,7 +62,7 @@ export default {
updateStack(state, stack) {
let existingIndex = state.stacks.findIndex(_stack => _stack.id === stack.id)
if (existingIndex !== -1) {
state.stacks[existingIndex] = stack
state.stacks[existingIndex].title = stack.title
}
}
},