Skip to content

Commit

Permalink
Merge branch 'patch' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisX11 committed Nov 3, 2023
2 parents 1649c86 + 787214e commit f09b7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/util/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Property {
if (typeof this.default == 'function') {
return this.default(instance);
} else if (this.isArray) {
return this.default.slice();
return this.default ? this.default.slice() : [];
} else if (this.isObject) {
return Object.keys(this.default).length ? JSON.parse(JSON.stringify(this.default)) : {};
} else {
Expand Down

0 comments on commit f09b7e5

Please sign in to comment.