Skip to content

Commit

Permalink
fix display empty in Table mode
Browse files Browse the repository at this point in the history
  • Loading branch information
molotgor committed Jan 16, 2025
1 parent 979e05b commit 15abf85
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/stores/JSONViewer/JSONViewerStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,15 @@ export class JSONViewerStore {
.flatMap(node => [
...this.chunksHeights.default.filter(
chunkData =>
this.isCompare &&
chunkData.height > 0 &&
chunkData.lastElement === '' &&
chunkData.firstElement === node.id,
),
node,
...this.chunksHeights.default.filter(
chunkData => chunkData.height > 0 && chunkData.lastElement === node.id,
chunkData =>
this.isCompare && chunkData.height > 0 && chunkData.lastElement === node.id,
),
]),
],
Expand All @@ -468,13 +470,15 @@ export class JSONViewerStore {
.flatMap(node => [
...this.chunksHeights.compare.filter(
chunkData =>
this.isCompare &&
chunkData.height > 0 &&
chunkData.lastElement === '' &&
chunkData.firstElement === node.id,
),
node,
...this.chunksHeights.compare.filter(
chunkData => chunkData.height > 0 && chunkData.lastElement === node.id,
chunkData =>
this.isCompare && chunkData.height > 0 && chunkData.lastElement === node.id,
),
]),
],
Expand Down

0 comments on commit 15abf85

Please sign in to comment.