diff --git a/packages/web-console/src/scenes/Editor/Metrics/useGraphOptions.ts b/packages/web-console/src/scenes/Editor/Metrics/useGraphOptions.ts index aef61740f..4a3789a24 100644 --- a/packages/web-console/src/scenes/Editor/Metrics/useGraphOptions.ts +++ b/packages/web-console/src/scenes/Editor/Metrics/useGraphOptions.ts @@ -122,7 +122,7 @@ export const useGraphOptions = ({ }, y: { range: (u, min, max) => { - return [u.data[0].length > 1 ? min : 0, max] + return [u.data[0].length > 1 && min !== max ? min : 0, max] }, }, }