Timeseries: Remove cursor sync when x is not time (#78496)

This commit is contained in:
Adela Almasan 2023-11-22 16:23:16 -06:00 committed by GitHub
parent 4203a83538
commit 5b851d7410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -609,7 +609,7 @@ export const preparePlotConfigBuilder: UPlotConfigPrepFn<{
},
};
if (sync && sync() !== DashboardCursorSync.Off) {
if (sync && sync() !== DashboardCursorSync.Off && xField.type === FieldType.time) {
const payload: DataHoverPayload = {
point: {
[xScaleKey]: null,