Skip to content

Commit

Permalink
fix: deep clone to new mixer added in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Oct 10, 2020
1 parent 35b7732 commit dc077be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Settings extends React.PureComponent<IAppProps & Store, IState> {
settings.mixers = []
for (let i = 0; i < settings.numberOfMixers; i++) {
if (settings.mixers[i] === undefined) {
settings.mixers.push(mixers[0])
settings.mixers.push( JSON.parse(JSON.stringify(mixers[0])))
} else {
settings.mixers.push(mixers[i])
}
Expand Down

0 comments on commit dc077be

Please sign in to comment.