Quick fix for buggy gather update

This commit is contained in:
Chris Blanchard 2015-10-21 15:43:09 +01:00
parent 467b13526a
commit b1f7aefe46
2 changed files with 3 additions and 3 deletions

View file

@ -85,8 +85,9 @@ module.exports = function (namespace) {
socket.on("gather:refresh", function () {
socket.emit("gather:refresh", {
gather: Gather.current.toJson(),
currentGatherer: Gather.current.getGatherer(socket._user)
gather: Gather.current ? Gather.current.toJson() : null,
maps: Map.list,
servers: Server.list
});
});

View file

@ -612,7 +612,6 @@ var Gather = React.createClass({
let servers = this.props.servers;
let maps = this.props.maps;
let user = this.props.user;
if (gather === null) return <div></div>;
let voting;