Skip to content

Commit f4ca30b

Browse files
committed
Throw exception if EventTile is instantiated with an event type it doesn't support.
1 parent 3db86b1 commit f4ca30b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/skins/vector/views/molecules/EventTile.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module.exports = React.createClass({
7676
// This shouldn't happen: the caller should check we support this type
7777
// before trying to instantiate us
7878
if (!EventTileType) {
79-
return null;
79+
throw new Error("Event type not supported");
8080
}
8181

8282
var classes = classNames({

0 commit comments

Comments
 (0)