Skip to content

Commit

Permalink
Fixed issue #16274: Fruity Theme : Setting font didn't work (#1621)
Browse files Browse the repository at this point in the history
If no current "package to load" object, creating an empty one
  • Loading branch information
gabrieljenik committed Oct 16, 2020
1 parent 56b5ac4 commit 41be448
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/packages/themeoptions-core/themeoptions-core.js
Expand Up @@ -272,6 +272,8 @@ var ThemeOptions = function () {
JSON.parse($('#TemplateConfiguration_packages_to_load').val()) :
$(this).data('inheritvalue');

if (currentPackageObject === 'inherit') currentPackageObject = {add:[]};

if ($('#simple_edit_options_font').val() === 'inherit') {

$('#TemplateConfiguration_packages_to_load').val('inherit');
Expand Down

0 comments on commit 41be448

Please sign in to comment.