Etemplate: Fix double duration format in timesheet nextmatch header

This commit is contained in:
nathangray 2020-08-28 13:53:23 -06:00
parent 10f40c9dbb
commit 1ad5d321a4
2 changed files with 2 additions and 0 deletions

View File

@ -695,6 +695,7 @@ var et2_date_duration = /** @class */ (function (_super) {
et2_date_duration.prototype.set_display_format = function (format) {
if (format.length <= 1) {
this.node.remove('select.et2_date_duration');
this.format.remove();
this.format = null;
}
this.options.display_format = format;

View File

@ -861,6 +861,7 @@ export class et2_date_duration extends et2_date
if (format.length <= 1)
{
this.node.remove('select.et2_date_duration');
this.format.remove();
this.format = null;
}
this.options.display_format = format;