Fix bug with adding font to recent (font isn't in the font list)

This commit is contained in:
Julia Radzhabova 2019-10-10 12:03:30 +03:00
parent 3de538a49d
commit 2c83af7e9e

View file

@ -430,7 +430,7 @@ define([
},
addItemToRecent: function(record, silent) {
if (this.recent<1) return;
if (!record || this.recent<1) return;
var font = this.store.findWhere({name: record.get('name'),type:FONT_TYPE_RECENT});
font && this.store.remove(font);