Skip to content
Snippets Groups Projects
Unverified Commit e3ea8fbf authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Fix /open with an invalid name

parent 6b885043
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ function Open(command, params/*, item*/) {
}
subscription = ChatSubscription.findOne(query);
if (subscription !== null) {
if (subscription) {
FlowRouter.go(RocketChat.roomTypes.getRouteLink(subscription.t, subscription));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment