Skip to content

Commit

Permalink
fix update device
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-nettica committed Jul 16, 2024
1 parent 7dfb2e9 commit 3fd592a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/store/modules/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ const mutations = {
update(state, device) {
let index = state.devices.findIndex(x => x.id === device.id);
if (index !== -1) {
device.vpns = state.devices[index].vpns
state.devices.splice(index, 1);
state.devices.push(device);
} else {
Expand Down

0 comments on commit 3fd592a

Please sign in to comment.