Skip to content

Commit c8f8281

Browse files
committed
[fixed] null exception on empty agenda view
1 parent a6133e7 commit c8f8281

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Agenda.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ let Agenda = React.createClass({
159159
let header = this.refs.header;
160160
let firstRow = this.refs.tbody.firstChild
161161

162+
if (!firstRow)
163+
return
164+
162165
let isOverflowing = this.refs.content.scrollHeight > this.refs.content.clientHeight;
163166
let widths = this._widths || []
164167

0 commit comments

Comments
 (0)