From cad7741b54abb405334e12cc63c718c233d69b59 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Thu, 10 Sep 2015 19:11:19 +0200 Subject: Fix the draft saving feature on card switching --- client/components/cards/cardDetails.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/components/cards') diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 69e0cfdd..09c99f4e 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -102,6 +102,9 @@ BlazeComponent.extendComponent({ _getUnsavedEditKey() { return { fieldName: 'cardDescription', + // XXX Recovering the currentCard identifier form a session variable is + // fragile because this variable may change for instance if the route + // change. We should use some component props instead. docId: Session.get('currentCard'), }; } -- cgit v1.2.3-1-g7c22