mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 06:51:23 +08:00
Fix bug with adding font to recent (font isn't in the font list)
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user