further debugging addtostudio modal

This commit is contained in:
Ben Wheeler 2018-06-19 11:07:25 -04:00
parent b18ddeedaf
commit 61dda43b8f

View file

@ -82,6 +82,7 @@ class AddToStudioModal extends React.Component {
console.log(myStudios); console.log(myStudios);
console.log(onOrDirty); console.log(onOrDirty);
this.setState({onOrDirty: Object.assign({}, onOrDirty)}); this.setState({onOrDirty: Object.assign({}, onOrDirty)});
this.setState({testkey2: 'testval2'});
} }
handleToggleAdded(studioId) { handleToggleAdded(studioId) {
@ -140,7 +141,8 @@ class AddToStudioModal extends React.Component {
// When this modal is opened, and isOpen becomes true, // When this modal is opened, and isOpen becomes true,
// onOrDirty should start with a clean slate // onOrDirty should start with a clean slate
// NOTE: this doesn't seem to be working // NOTE: this doesn't seem to be working
this.setState({onOrDirty: {}}); this.setState({onOrDirty: {testkey3: 'testval3'}});
this.setState({testkey: 'testval'});
debugger; debugger;
this.props.onAddToStudio(studiosToAdd, studiosToDelete, err => { this.props.onAddToStudio(studiosToAdd, studiosToDelete, err => {
if (err) log.error(err); if (err) log.error(err);