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 1339651 commit 4340998Copy full SHA for 4340998
libs/angular-three/src/lib/directives/args.ts
@@ -6,7 +6,8 @@ export class NgtArgs<TArgs extends any[] = any[]> extends NgtCommonDirective {
6
#injectedArgs: TArgs = [] as unknown as TArgs;
7
8
@Input() set args(args: TArgs | null) {
9
- if (args == null || !Array.isArray(args) || (args.length === 1 && args[0] === null)) return;
+ if (args == null || !Array.isArray(args) || args.length === 0 || (args.length === 1 && args[0] === null))
10
+ return;
11
this.injected = false;
12
this.#injectedArgs = args;
13
this.createView();
0 commit comments