From 61dda43b8f705134da562f6277b863446241bf9b Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Tue, 19 Jun 2018 11:07:25 -0400 Subject: [PATCH] further debugging addtostudio modal --- src/components/modal/addtostudio/modal.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/modal/addtostudio/modal.jsx b/src/components/modal/addtostudio/modal.jsx index 20684685e..9a6ab8c85 100644 --- a/src/components/modal/addtostudio/modal.jsx +++ b/src/components/modal/addtostudio/modal.jsx @@ -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);