Skip to content

Commit 74c529f

Browse files
authored
Merge pull request #10 from JWebCoder/develop
Develop
2 parents 94b3b8b + 3512873 commit 74c529f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ function triggerSubscriptions() {
4848
(componentId: string) => {
4949
new Promise(
5050
(resolve, reject) => {
51-
subscribes[componentId]()
51+
if (subscribes[componentId] && typeof subscribes[componentId] === 'function') {
52+
subscribes[componentId]()
53+
}
5254
resolve()
5355
}
5456
).then()

0 commit comments

Comments
 (0)