Throw exception if EventTile is instantiated with an event type it doesn't support.

pull/314/head
David Baker 2015-10-29 18:12:42 +00:00
parent 3db86b1f59
commit f4ca30bb38
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ module.exports = React.createClass({
// This shouldn't happen: the caller should check we support this type
// before trying to instantiate us
if (!EventTileType) {
return null;
throw new Error("Event type not supported");
}
var classes = classNames({