Skip to content

Commit 93cabd3

Browse files
fix dev mode
1 parent b8d8b0d commit 93cabd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/lib/src/internal/price-line.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export function priceLine<T extends SeriesActionParams>(
1212
target: SeriesActionResult<T>,
1313
params: PriceLineParams
1414
): PriceLineActionResult {
15-
// TODO: wait 4.0
16-
const subject = (target.subject().createPriceLine as () => IPriceLine)();
15+
// TODO: this works well but throw in dev mode if price is not provided
16+
const subject = (target.subject().createPriceLine as (options: Partial<PriceLineOptions>) => IPriceLine)({ price: 0 });
1717
const defaults = clone(subject.options());
1818
subject.applyOptions(params);
1919
return {

0 commit comments

Comments
 (0)