mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
further debugging addtostudio modal
This commit is contained in:
parent
b18ddeedaf
commit
61dda43b8f
1 changed files with 3 additions and 1 deletions
|
@ -82,6 +82,7 @@ class AddToStudioModal extends React.Component {
|
|||
console.log(myStudios);
|
||||
console.log(onOrDirty);
|
||||
this.setState({onOrDirty: Object.assign({}, onOrDirty)});
|
||||
this.setState({testkey2: 'testval2'});
|
||||
}
|
||||
|
||||
handleToggleAdded(studioId) {
|
||||
|
@ -140,7 +141,8 @@ class AddToStudioModal extends React.Component {
|
|||
// When this modal is opened, and isOpen becomes true,
|
||||
// onOrDirty should start with a clean slate
|
||||
// NOTE: this doesn't seem to be working
|
||||
this.setState({onOrDirty: {}});
|
||||
this.setState({onOrDirty: {testkey3: 'testval3'}});
|
||||
this.setState({testkey: 'testval'});
|
||||
debugger;
|
||||
this.props.onAddToStudio(studiosToAdd, studiosToDelete, err => {
|
||||
if (err) log.error(err);
|
||||
|
|
Loading…
Reference in a new issue