mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-22 19:05:56 -04:00
small comment
This commit is contained in:
parent
af25e44fc6
commit
d9543314cc
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue