浏览代码

fix: remove item from localforage while deleting draft

version-14
prssanna 4 年前
父节点
当前提交
64359e3323
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/public/js/frappe/views/communication.js

+ 1
- 1
frappe/public/js/frappe/views/communication.js 查看文件

@@ -602,7 +602,7 @@ frappe.views.CommunicationComposer = Class.extend({

delete_saved_draft() {
if (this.dialog) {
localforage.getItem(this.frm.doctype + this.frm.docname).catch(e => {
localforage.removeItem(this.frm.doctype + this.frm.docname).catch(e => {
if (e) {
// silently fail
console.log(e); // eslint-disable-line


正在加载...
取消
保存