diff --git a/src/components/panels/WebcamPanel.vue b/src/components/panels/WebcamPanel.vue index b12bcc9e..41f63257 100644 --- a/src/components/panels/WebcamPanel.vue +++ b/src/components/panels/WebcamPanel.vue @@ -33,19 +33,23 @@ - - + + + + + + @@ -101,7 +105,7 @@ }, webcams: { get() { - return this.$store.state.gui.webcam.configs + return this.$store.getters["gui/getWebcams"] } }, url() { diff --git a/src/store/gui/mutations.js b/src/store/gui/mutations.js index da6319ff..367db2a9 100644 --- a/src/store/gui/mutations.js +++ b/src/store/gui/mutations.js @@ -82,7 +82,7 @@ export default { updateWebcam(state, payload) { if (state.webcam.configs[payload.index]) { - const configs = state.webcam.configs + const configs = {...state.webcam.configs} configs[payload.index] = { name: payload.name, icon: payload.icon,