Skip to content

Commit 890124d

Browse files
chore(build): adjust to es6 target
1 parent 7c7b5b0 commit 890124d

File tree

1 file changed

+2
-1
lines changed
  • packages/node_modules/overmind/src/views

1 file changed

+2
-1
lines changed

packages/node_modules/overmind/src/views/react.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ export default class ReactApp<
5050
const componentId = nextComponentId++
5151
let componentInstanceId = 0
5252
const instance = this
53-
const isClassComponent = typeof Component.prototype.render === 'function'
53+
const isClassComponent =
54+
Component.prototype && typeof Component.prototype.render === 'function'
5455

5556
if (isClassComponent) {
5657
const originalRender = Component.prototype.render

0 commit comments

Comments
 (0)