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 de311f7 commit a6435bfCopy full SHA for a6435bf
src/ChartJs.Blazor/Interop/TypeScript/ChartJsInterop.ts
@@ -246,6 +246,10 @@ class ChartJsInterop {
246
247
if (config.options?.scale?.ticks) {
248
config.options.scale.ticks.callback = this.getMethodHandler(<IMethodHandler>config.options.scale.ticks.callback, undefined);
249
+
250
+ if (!config.options.scale.ticks.callback) {
251
+ delete config.options.scale.ticks.callback; // undefined != deleted, Chart.js throws an error if it's undefined so we have to delete it
252
+ }
253
}
254
255
0 commit comments