Skip to content

Commit 02a0624

Browse files
committed
Statshouse UI: only reset v1 version when it is disabled
1 parent c749ec6 commit 02a0624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statshouse-ui/src/store2/urlStore/resetDefaultParams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function resetDefaultParams(params: QueryParams) {
2525

2626
if (globalSettings.disabled_v1) {
2727
Object.values(p.plots).forEach((plot) => {
28-
if (plot) {
28+
if (plot && plot.backendVersion === METRIC_VALUE_BACKEND_VERSION.v1) {
2929
plot.backendVersion = METRIC_VALUE_BACKEND_VERSION.v2;
3030
reset = true;
3131
}

0 commit comments

Comments
 (0)