Skip to content

Commit 2121810

Browse files
committed
AG-17505 Unwrap only a grouping value in a pending range bound
A grouping value is the one bound shape carrying its value in a nested field, so keying the unwrap on `value` alone would also strip a serialisable date or bigint down to its raw payload.
1 parent a996726 commit 2121810

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/ag-charts-community/src/chart/update/dataWindowProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const DEFAULT_ZOOM: ZoomMinMax = { min: 0, max: 1 };
2020
type WindowBound = AgDataSourceCallbackParams['windowStart'];
2121

2222
function windowBound(value: unknown): WindowBound {
23-
if (isObject(value) && 'value' in value) return windowBound(value.value);
23+
if (isObject(value) && 'groupPercentage' in value) return windowBound(value.value);
2424
if (isString(value) || isFiniteNumber(value) || isValidDate(value)) return value;
2525
}
2626

0 commit comments

Comments
 (0)