Skip to content

Commit

Permalink
Fix for empty array and empty object rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
varkrishna authored and KrishanMMT committed Sep 16, 2023
1 parent 43721e4 commit b28ad76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/JSONViewer/JSONNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public struct JSONNode: Identifiable, Hashable, Sequence {
public var type: JSONNodeType = .other

public var isExpandable: Bool {
return !children.isEmpty
return type != .other
}

public typealias Iterator = Array<JSONNode>.Iterator
Expand Down

0 comments on commit b28ad76

Please sign in to comment.