We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8d8b0d commit 93cabd3Copy full SHA for 93cabd3
packages/lib/src/internal/price-line.ts
@@ -12,8 +12,8 @@ export function priceLine<T extends SeriesActionParams>(
12
target: SeriesActionResult<T>,
13
params: PriceLineParams
14
): PriceLineActionResult {
15
- // TODO: wait 4.0
16
- const subject = (target.subject().createPriceLine as () => IPriceLine)();
+ // TODO: this works well but throw in dev mode if price is not provided
+ const subject = (target.subject().createPriceLine as (options: Partial<PriceLineOptions>) => IPriceLine)({ price: 0 });
17
const defaults = clone(subject.options());
18
subject.applyOptions(params);
19
return {
0 commit comments