Make list and map entries collapsible (#169)

* Make list entries collapsible

* Show errors in collapsed nodes and keep context of loot type

* Make map entries collapsible

* Add collapse-all functionality
This commit is contained in:
Misode
2021-09-24 22:12:33 +02:00
committed by GitHub
parent 1813a553db
commit 7db47938b8
6 changed files with 158 additions and 66 deletions

View File

@@ -108,7 +108,7 @@ export function deepEqual(a: any, b: any) {
if (Array.isArray(a)) {
length = a.length
if (length != b.length) return false
for (i = length; i-- !== 0;) {
for (i = 0; i < length; i++) {
if (!deepEqual(a[i], b[i])) return false
}
return true