Skip to content

Commit ce341eb

Browse files
committed
Add missing setSelectedAudioInput mutation to Vuex store
- Fixes runtime error when selecting audio input device in MediaRecord component - Completes the audio device selection feature implementation
1 parent d7a33e4 commit ce341eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/store/store.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ const mutations = {
206206
setExport(state, value) {
207207
state.hasExport = value;
208208
},
209+
// eslint-disable-next-line
210+
setSelectedAudioInput(state, deviceId) {
211+
state.selectedAudioInput = deviceId;
212+
},
209213
};
210214

211215
const actions = {

0 commit comments

Comments
 (0)