Skip to content

Commit

Permalink
fix onReset
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Oct 3, 2023
1 parent 6eed42b commit 09b1bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/STableHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const stats = computed(() => {
// deprecated `reset` prop in favor of `actions`, remove this in next major version
const resetAction = computed(() => {
return props.reset
? [{ label: 'Reset filters', onClick: props.onReset, type: 'info' }]
? [{ label: 'Reset filters', onClick: props.onReset!, type: 'info' }] // onReset is required when reset is true

Check warning on line 32 in lib/components/STableHeader.vue

View check run for this annotation

Codecov / codecov/patch

lib/components/STableHeader.vue#L32

Added line #L32 was not covered by tests
: []
})
</script>
Expand Down

0 comments on commit 09b1bf1

Please sign in to comment.