From 5500c2f280013542a687203d515f1b65b83dd264 Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Fri, 29 Jan 2016 13:14:08 +0100 Subject: [PATCH] Fixes harmless exception: hitting esc with no cards open. --- client/app/scripts/stores/app-store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/scripts/stores/app-store.js b/client/app/scripts/stores/app-store.js index f25008a42..5f79042b9 100644 --- a/client/app/scripts/stores/app-store.js +++ b/client/app/scripts/stores/app-store.js @@ -240,7 +240,7 @@ export class AppStore extends Store { } getTopCardNodeId() { - return nodeDetails.last().id; + return nodeDetails.last() && nodeDetails.last().id; } getNodes() {