Skip to content

Commit

Permalink
Fix TS compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Nov 17, 2024
1 parent 4e647f8 commit e20f90b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions site/frontend/src/pages/compare/compile/compile-page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,11 @@ function updateFilter(newFilter: CompileBenchmarkFilter) {
refreshQuickLinks();
}
function updateSelfCompareBackend(value: boolean) {
updateFilter({...filter.value, selfCompareBackend: value});
// We pass the event target here, because Parcel cannot handle the `as`
// cast directly in the template.
function updateSelfCompareBackend(target: EventTarget) {
const element = target as HTMLInputElement;
updateFilter({...filter.value, selfCompareBackend: element.checked});
}
/**
Expand Down Expand Up @@ -260,7 +263,7 @@ const filteredSummary = computed(() => computeSummary(comparisons.value));
<input
type="checkbox"
:checked="selfCompareBackend"
@change="(e) => updateSelfCompareBackend(e.target.checked)"
@change="(e) => updateSelfCompareBackend(e.target)"
/>
</div>
<Filters
Expand Down

0 comments on commit e20f90b

Please sign in to comment.