Skip to content

Commit ca8d203

Browse files
committed
added check for getMeteorState function
1 parent ce3ec38 commit ca8d203

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ReactMeteor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
var ReactMeteorMixin = {
22
_handleMeteorChange: function () {
3-
this.setState(this.getMeteorState());
3+
if( this.getMeteorState !== undefined ){
4+
this.setState(this.getMeteorState());
5+
}
46
},
57

68
_cancelComputation: function () {

0 commit comments

Comments
 (0)