Fixed custom file properties
This commit is contained in:
parent
1bc7de32be
commit
505df59204
@ -116,7 +116,9 @@ export default {
|
|||||||
const override = (obj, opt) => {
|
const override = (obj, opt) => {
|
||||||
const objType = Object.prototype.toString.call(obj);
|
const objType = Object.prototype.toString.call(obj);
|
||||||
const optType = Object.prototype.toString.call(opt);
|
const optType = Object.prototype.toString.call(opt);
|
||||||
if (objType !== optType) {
|
if (obj === undefined) {
|
||||||
|
return opt;
|
||||||
|
} else if (objType !== optType) {
|
||||||
return obj;
|
return obj;
|
||||||
} else if (objType !== '[object Object]') {
|
} else if (objType !== '[object Object]') {
|
||||||
return opt === undefined ? obj : opt;
|
return opt === undefined ? obj : opt;
|
||||||
|
Loading…
Reference in New Issue
Block a user