Skip to content

Commit

Permalink
fix(VDataTable): avoid changing page if oldOptions not defined (#19542)
Browse files Browse the repository at this point in the history
fixes #17966

Co-authored-by: John Leider <john@vuetifyjs.com>
  • Loading branch information
webdevnerdstuff and johnleider committed Apr 9, 2024
1 parent 85ba4a8 commit 37a573d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function useOptions ({
if (deepEqual(oldOptions, options.value)) return

// Reset page when searching
if (oldOptions?.search !== options.value.search) {
if (oldOptions && oldOptions.search !== options.value.search) {
page.value = 1
}

Expand Down

0 comments on commit 37a573d

Please sign in to comment.