Skip to content

Commit ebd3c3a

Browse files
committed
fix(core): null check first before isTexture
1 parent 4a23c73 commit ebd3c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libs/core/src/lib/utils/apply-props.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function applyProps(instance: NgtInstanceNode, props: NgtAnyRecord) {
9595
currentInstance[key] = value;
9696
// auto-convert srgb textures
9797
if (
98-
currentInstance[key].isTexture &&
98+
currentInstance[key]?.isTexture &&
9999
currentInstance[key].format === RGBAFormat &&
100100
currentInstance[key].type === UnsignedByteType
101101
) {

0 commit comments

Comments
 (0)