Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
molotgor committed Nov 25, 2024
1 parent 75cb958 commit de7aa09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stores/JSONViewer/JSONViewerStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,9 @@ export class JSONViewerStore {
}

getChunkHeight = (type: PanelType) => {
const displayed: TreeNode[] = this.listData[type].filter(leaf => isTreeNode(leaf));
const displayed: TreeNode[] = this.listData[type].filter(
leaf => isTreeNode(leaf) && 'id' in leaf,
);
const chunks: {
[timestamp: string]: {
id: string;
Expand Down

0 comments on commit de7aa09

Please sign in to comment.