From 767dba6ab966945ad2ffc8607a40e69d1a188b1e Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Wed, 12 Feb 2020 06:58:42 +0000 Subject: [PATCH] :green_heart: mail_check_immediately/static/src/js/main --- mail_check_immediately/static/src/js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail_check_immediately/static/src/js/main.js b/mail_check_immediately/static/src/js/main.js index 2028566..8f1aa1d 100644 --- a/mail_check_immediately/static/src/js/main.js +++ b/mail_check_immediately/static/src/js/main.js @@ -1,4 +1,5 @@ openerp.mail_check_immediately = function(instance, local) { + "use strict"; instance.mail.Wall.include({ init: function() { this._super.apply(this, arguments); @@ -42,7 +43,7 @@ openerp.mail_check_immediately = function(instance, local) { context: new instance.web.CompoundContext(), }) .then(function(res) { - var value; + var value = null; if (res) value = $.timeago(res); value = value || "undefined"; _this.$el