diff --git a/types/json-object.vue b/types/json-object.vue index 9fb9795..cf8ba10 100644 --- a/types/json-object.vue +++ b/types/json-object.vue @@ -24,9 +24,11 @@ export default { ordered () { const ordered = {}; if (this.sortKeys) { - Object.keys(this.jsonValue).sort().forEach(function(key) { + Object.keys(this.jsonValue).sort().forEach(key => { ordered[key] = this.jsonValue[key]; }); + } else { + ordered = this.jsonValue } return ordered; }