Skip to content

Commit 6a2adfb

Browse files
chore(deps): update dependency tsd to ^0.24.0 (#1036)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent ad73425 commit 6a2adfb

File tree

3 files changed

+18
-19
lines changed

3 files changed

+18
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"simple-github-release": "^1.0.0",
113113
"size-limit": "^7.0.4",
114114
"standard-version": "^9.3.1",
115-
"tsd": "^0.19.0",
115+
"tsd": "^0.24.0",
116116
"typescript": "^4.4.3",
117117
"webpack": "^5.58.2"
118118
},

pnpm-lock.yaml

Lines changed: 12 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ export function setOptions<
2525
TData = DefaultDataPoint<TType>,
2626
TLabel = unknown
2727
>(chart: Chart<TType, TData, TLabel>, nextOptions: ChartOptions<TType>) {
28-
Object.assign(chart.options, nextOptions);
28+
const options = chart.options;
29+
30+
if (options && nextOptions) {
31+
Object.assign(options, nextOptions);
32+
}
2933
}
3034

3135
export function setLabels<

0 commit comments

Comments
 (0)