Skip to content

Commit 0bfaab6

Browse files
committedMar 8, 2025
fix(core): check against ngt-primitive type to prepare ngt-primitive
1 parent b796c54 commit 0bfaab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎libs/core/src/lib/renderer/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class NgtRenderer2 implements Renderer2 {
158158
if (!injectedArgs[0]) throw new Error(`[NGT] ngt-primitive without args is invalid`);
159159
const object = injectedArgs[0];
160160
let instanceState = getInstanceState(object);
161-
if (!instanceState || instanceState.type === 'ngt-primitive') {
161+
if (!instanceState || instanceState.type !== 'ngt-primitive') {
162162
// if an object isn't already "prepared", we'll prepare it
163163
prepare(object, 'ngt-primitive', instanceState);
164164
}

0 commit comments

Comments
 (0)
Please sign in to comment.