Skip to content

Commit 7982c90

Browse files
authored
fix: uncheck "apply correction" when there is no anomaly data (#1864)
1 parent be21311 commit 7982c90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/components/Package/TrendsChart.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,10 @@ watch(selectedMetric, value => {
18951895
:class="{ 'opacity-50 pointer-events-none': !hasAnomalies }"
18961896
>
18971897
<input
1898-
v-model="settings.chartFilter.anomaliesFixed"
1898+
:checked="settings.chartFilter.anomaliesFixed && hasAnomalies"
1899+
@change="
1900+
settings.chartFilter.anomaliesFixed = ($event.target as HTMLInputElement).checked
1901+
"
18991902
type="checkbox"
19001903
:disabled="!hasAnomalies"
19011904
class="accent-[var(--accent-color,var(--fg-subtle))]"

0 commit comments

Comments
 (0)