Skip to content

Commit

Permalink
fix: handle dnesity case
Browse files Browse the repository at this point in the history
  • Loading branch information
lsh committed Jun 9, 2023
1 parent 0691b9d commit 209c572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ export function isFold(t: Transform): t is FoldTransform {
}

export function isExtent(t: Transform): t is ExtentTransform {
return 'extent' in t;
return 'extent' in t && !('density' in t);
}
export type Transform =
| AggregateTransform
Expand Down

0 comments on commit 209c572

Please sign in to comment.