Skip to content

Commit d329e84

Browse files
committed
add None as option for Overlay in axes panel
1 parent 99fd4ec commit d329e84

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/fields/derived.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export const AxisAnchorDropdown = connectToContainer(UnconnectedDropdown, {
4747

4848
export const AxisOverlayDropdown = connectToContainer(UnconnectedDropdown, {
4949
modifyPlotProps: (props, context, plotProps) => {
50+
const {localize: _} = context;
5051
let options = [];
5152
if (
5253
plotProps.fullContainer &&
@@ -72,13 +73,13 @@ export const AxisOverlayDropdown = connectToContainer(UnconnectedDropdown, {
7273
});
7374
}
7475

76+
options.unshift({label: _('None'), value: false});
77+
7578
// filter out the current axisID, can't overlay over itself
7679
plotProps.options = options.filter(
7780
option =>
7881
context.fullContainer && context.fullContainer._id !== option.value
7982
);
80-
81-
plotProps.clearable = true;
8283
},
8384
});
8485

0 commit comments

Comments
 (0)