Skip to content

Commit

Permalink
🐛 Fix some Settings field issues
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed Jul 25, 2024
1 parent b245ee0 commit 43cab8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/app/helper_field/settings_field.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ Settings.setMethod(function _toDatasource(context, value) {
context = context.withWorkingValue(value);
}

_toDatasource.super.call(this, context, value);
return _toDatasource.super.call(this, context, value);
});
2 changes: 1 addition & 1 deletion lib/core/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ Definition.setMethod(function getEditorConfiguration(root_value, editor_context)

let result = this.toEnumEntry();

let value = root_value.getPath(this.setting_id);
let value = root_value ? root_value.getPath(this.setting_id) : null;

if (value) {
result.current_value = value.get();
Expand Down

0 comments on commit 43cab8e

Please sign in to comment.