Skip to content

Commit 145bf8a

Browse files
authored
Merge pull request #874 from plotly/symbol-selector-fix
Supported symbols in SymbolSelector
2 parents f17fd43 + 8cfe916 commit 145bf8a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/components/fields/SymbolSelector.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,10 @@ class SymbolSelector extends Component {
377377

378378
this.borderColor = Array.isArray(this.borderColor) ? COLORS.charcoal : this.borderColor;
379379

380-
if (this.props.is3D) {
381-
this.symbolOptions = SYMBOLS.filter(option => {
382-
return option.threeD;
383-
});
384-
} else {
385-
this.symbolOptions = [...SYMBOLS];
386-
}
380+
this.symbolOptions =
381+
this.props.container.type === 'scatter3d'
382+
? SYMBOLS.filter(option => option.threeD)
383+
: [...SYMBOLS];
387384
}
388385

389386
render() {

0 commit comments

Comments
 (0)