From 614a37caf269f29be76d151d6eec0e10035c856a Mon Sep 17 00:00:00 2001 From: STAFYNIAK Sacha Date: Mon, 17 Sep 2018 05:58:30 +0200 Subject: [PATCH] add support for 'undefined' values in json objects --- json-box.vue | 2 +- types/json-null.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/json-box.vue b/json-box.vue index 7fa6ad3..7a95910 100644 --- a/json-box.vue +++ b/json-box.vue @@ -35,7 +35,7 @@ export default { }, computed: { valueType() { - if (this.value === null) { + if (this.value === null || this.value === undefined) { return 'Null'; } else if (Array.isArray(this.value)) { return 'Array'; diff --git a/types/json-null.vue b/types/json-null.vue index 7e5768f..b424821 100644 --- a/types/json-null.vue +++ b/types/json-null.vue @@ -1,5 +1,5 @@