summaryrefslogtreecommitdiffstats
path: root/client/components/cards
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-09-10 19:11:19 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-09-10 19:11:19 +0200
commitcad7741b54abb405334e12cc63c718c233d69b59 (patch)
tree07ea9ee06ab23d3fe91db88b042d389a76326dee /client/components/cards
parent6dbd6d0010dfad781958d482659674113603b851 (diff)
downloadwekan-cad7741b54abb405334e12cc63c718c233d69b59.tar.gz
wekan-cad7741b54abb405334e12cc63c718c233d69b59.tar.bz2
wekan-cad7741b54abb405334e12cc63c718c233d69b59.zip
Fix the draft saving feature on card switching
Diffstat (limited to 'client/components/cards')
-rw-r--r--client/components/cards/cardDetails.js3
1 files changed, 3 insertions, 0 deletions
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'),
};
}