We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca727e5 + bb6e233 commit 67d0b34Copy full SHA for 67d0b34
src/EffectBlock.ts
@@ -87,6 +87,10 @@ class Effect extends Block {
87
}
88
// List of components is given, verify components length
89
else {
90
+ if (typeof input == 'number' && this.inputDimension == 1) {
91
+ input = [input];
92
+ }
93
+
94
if (input.length != this.inputDimension) {
95
throw 'This effect needs ${this.inputDimension} component(s) as input, but ${input} was given';
96
0 commit comments