small comment

This commit is contained in:
Ben Wheeler 2018-07-05 13:31:48 -04:00
parent af25e44fc6
commit d9543314cc

View file

@ -78,6 +78,9 @@ class AddToStudioModal extends React.Component {
// projectStudios could have dropped some studios since the last time
// we traveresd it, so we should build the joined state object
// from scratch.
// can't just use the spread operator here, because we may have
// project studios removed from the list.
let joined = Object.assign({}, this.state.joined);
projectStudios.forEach((studio) => {
joined[studio.id] = true;