placate format gods
This commit is contained in:
parent
ffbbc43c89
commit
64f16c4f33
2 changed files with 2 additions and 2 deletions
|
|
@ -216,7 +216,7 @@ export function repl({
|
||||||
if (Object.keys(pPatterns).length) {
|
if (Object.keys(pPatterns).length) {
|
||||||
let patterns = [];
|
let patterns = [];
|
||||||
for (const [key, value] of Object.entries(pPatterns)) {
|
for (const [key, value] of Object.entries(pPatterns)) {
|
||||||
patterns.push(value.withState(state => state.setControls({id: key})));
|
patterns.push(value.withState((state) => state.setControls({ id: key })));
|
||||||
}
|
}
|
||||||
if (eachTransform) {
|
if (eachTransform) {
|
||||||
// Explicit lambda so only element (not index and array) are passed
|
// Explicit lambda so only element (not index and array) are passed
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ export class State {
|
||||||
|
|
||||||
// Returns new State with added controls.
|
// Returns new State with added controls.
|
||||||
setControls(controls) {
|
setControls(controls) {
|
||||||
return new State(this.span, {...this.controls, ...controls});
|
return new State(this.span, { ...this.controls, ...controls });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue