Fix the draft saving feature on card switching

This commit is contained in:
Maxime Quandalle 2015-09-10 19:11:19 +02:00
parent 6dbd6d0010
commit cad7741b54
3 changed files with 6 additions and 2 deletions

View file

@ -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'),
};
}