Fixes harmless exception: hitting esc with no cards open.

This commit is contained in:
Simon Howe
2016-01-29 13:14:08 +01:00
parent bac56c6c03
commit 5500c2f280

View File

@@ -240,7 +240,7 @@ export class AppStore extends Store {
}
getTopCardNodeId() {
return nodeDetails.last().id;
return nodeDetails.last() && nodeDetails.last().id;
}
getNodes() {