Fixed custom file properties

This commit is contained in:
benweet 2017-11-19 18:26:34 +00:00
parent 1bc7de32be
commit 505df59204

View File

@ -116,7 +116,9 @@ export default {
const override = (obj, opt) => {
const objType = Object.prototype.toString.call(obj);
const optType = Object.prototype.toString.call(opt);
if (objType !== optType) {
if (obj === undefined) {
return opt;
} else if (objType !== optType) {
return obj;
} else if (objType !== '[object Object]') {
return opt === undefined ? obj : opt;