Skip to content

Commit e20f90b

Browse files
committed
Fix TS compilation error
1 parent 4e647f8 commit e20f90b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

site/frontend/src/pages/compare/compile/compile-page.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,11 @@ function updateFilter(newFilter: CompileBenchmarkFilter) {
193193
refreshQuickLinks();
194194
}
195195
196-
function updateSelfCompareBackend(value: boolean) {
197-
updateFilter({...filter.value, selfCompareBackend: value});
196+
// We pass the event target here, because Parcel cannot handle the `as`
197+
// cast directly in the template.
198+
function updateSelfCompareBackend(target: EventTarget) {
199+
const element = target as HTMLInputElement;
200+
updateFilter({...filter.value, selfCompareBackend: element.checked});
198201
}
199202
200203
/**
@@ -260,7 +263,7 @@ const filteredSummary = computed(() => computeSummary(comparisons.value));
260263
<input
261264
type="checkbox"
262265
:checked="selfCompareBackend"
263-
@change="(e) => updateSelfCompareBackend(e.target.checked)"
266+
@change="(e) => updateSelfCompareBackend(e.target)"
264267
/>
265268
</div>
266269
<Filters

0 commit comments

Comments
 (0)