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.
1 parent c73d143 commit a33aaf5Copy full SHA for a33aaf5
src/stubs.ts
@@ -238,6 +238,12 @@ export const createFigma = (config: TConfig): PluginAPI => {
238
}
239
// @ts-ignore
240
group(nodes: any, parent: any, index) {
241
+ if (joinedConfig.simulateErrors && (!nodes || nodes.length === 0)) {
242
+ throw new Error(
243
+ "Error: First argument must be an array of at least one node"
244
+ );
245
+ }
246
+
247
const group: any = new GroupNodeStub();
248
nodes.forEach(node => group.appendChild(node));
249
if (index) {
0 commit comments