[Vuejs]-Update dynamic components disabled state based on Vuex state value

0👍

Well, I figured it out…

Because my state object is an array of objects, I can’t just change one of the property’s values with state.files.fileOne. I needed to do state.files[0].fileOne.

0👍

I think you need to refactor your mutation to make the state property mutable, like this:

fileSelect(state, file) {
  Vue.set(state.files[0].fileOne, file);
}

Leave a comment