diff --git a/attachments/script/costco.js b/attachments/script/costco.js index a0d15653..1ca8dd4a 100644 --- a/attachments/script/costco.js +++ b/attachments/script/costco.js @@ -40,7 +40,8 @@ var costco = function() { toUpdate.push(updated); edited++; } - if(preview) preview.push({before: doc[app.currentColumn], after: updated[app.currentColumn]}); + + if(preview) preview.push({before: JSON.stringify(doc[app.currentColumn]), after: JSON.stringify(updated[app.currentColumn])}); }); if(preview) util.render('editPreview', 'expression-preview-container', {rows: preview});