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 5ce3d47 commit d461d6fCopy full SHA for d461d6f
src/lib/index.js
@@ -58,7 +58,10 @@ function renderTraceIcon(trace, prefix = 'Plot') {
58
if (!trace) {
59
return null;
60
}
61
- const componentName = `${prefix}${pascalCase(trace)}Icon`;
+ const gl = 'gl';
62
+ const componentName = `${prefix}${pascalCase(
63
+ trace.endsWith(gl) ? trace.slice(0, -gl.length) : trace
64
+ )}Icon`;
65
return PlotlyIcons[componentName]
66
? PlotlyIcons[componentName]
67
: PlotlyIcons.PlotLineIcon;
0 commit comments