summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
Diffstat (limited to 'client/components')
-rw-r--r--client/components/cards/cardDetails.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index caa5993f..5a7071e8 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -88,7 +88,10 @@ BlazeComponent.extendComponent({
close(isReset = false) {
if (this.isOpen.get() && ! isReset) {
- UnsavedEdits.set(this._getUnsavedEditKey(), this.getValue());
+ let draft = $.trim(this.getValue());
+ if (draft !== Cards.findOne(Session.get('currentCard')).description) {
+ UnsavedEdits.set(this._getUnsavedEditKey(), this.getValue());
+ }
}
super();
}