mirror of
https://github.com/tenrok/vue-json-viewer.git
synced 2026-06-20 20:00:37 +03:00
fix: empty array show an undefined
This commit is contained in:
@@ -49,9 +49,8 @@ export default {
|
|||||||
this.value = [];
|
this.value = [];
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.value.push(vals[index]);
|
if (vals.length > index) {
|
||||||
|
this.value.push(vals[index]);
|
||||||
if (this.value.length < vals.length) {
|
|
||||||
this.setValue(vals, index + 1);
|
this.setValue(vals, index + 1);
|
||||||
}
|
}
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user