Skip to content

Commit 9534a8d

Browse files
committed
Avoid Error About Not Reading Prop bind of null
1 parent d9ca764 commit 9534a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/ops/ecs/ecs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
default:
8080
const collected = collectedQuery(target);
8181
const prop = collected[propName];
82-
return prop.bind ? prop.bind(collected) : prop;
82+
return prop && prop.bind ? prop.bind(collected) : prop;
8383
}
8484
}
8585
})

0 commit comments

Comments
 (0)