fix snapshots for objects
This commit is contained in:
parent
2bb095d47d
commit
5fd88f9213
1 changed files with 3 additions and 5 deletions
|
|
@ -86,11 +86,9 @@ export class Hap {
|
||||||
}
|
}
|
||||||
|
|
||||||
showWhole() {
|
showWhole() {
|
||||||
return `${this.whole == undefined ? '~' : this.whole.show()}: ${this.value}`;
|
return `${this.whole == undefined ? '~' : this.whole.show()}: ${
|
||||||
}
|
typeof this.value === 'object' ? JSON.stringify(this.value) : this.value
|
||||||
|
}`;
|
||||||
showWhole() {
|
|
||||||
return `${this.whole == undefined ? '~' : this.whole.show()}: ${this.value}`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
combineContext(b) {
|
combineContext(b) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue