Skip to content

Commit 6943cce

Browse files
committed
Overlaying adjustment
1 parent d81e812 commit 6943cce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/fields/derived.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ export const AxisOverlayDropdown = connectToContainer(UnconnectedDropdown, {
6868
};
6969
});
7070
}
71-
plotProps.options = options;
71+
72+
// filter out the current axisID, can't overlay over itself
73+
plotProps.options = options.filter(
74+
option => context.fullContainer._id !== option.value
75+
);
76+
7277
plotProps.clearable = true;
7378
},
7479
});

0 commit comments

Comments
 (0)