Change Settings.get to return undefined when a setting isn’t found
This commit is contained in:
parent
61c913b55b
commit
e793a8d380
|
@ -97,7 +97,7 @@ export default class {
|
||||||
|
|
||||||
static get(set_id, category_id, setting_id) {
|
static get(set_id, category_id, setting_id) {
|
||||||
const setting = this.getSetting(set_id, category_id, setting_id);
|
const setting = this.getSetting(set_id, category_id, setting_id);
|
||||||
return setting ? setting.value : null;
|
return setting ? setting.value : undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
static setSetting(set_id, category_id, setting_id, value) {
|
static setSetting(set_id, category_id, setting_id, value) {
|
||||||
|
|
Loading…
Reference in New Issue