mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -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(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);
|
||||||
|
|
Loading…
Reference in a new issue