Skip to content

Commit 4a3285e

Browse files
committed
chore: 🚨 fix lint issue
1 parent b163be1 commit 4a3285e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/components/DsfrDataTable/DsfrDataTable.vue‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ const pages = computed<Page[]>(() => props.pages ?? Array.from({ length: pageCou
6464
const lowestLimit = computed(() => currentPage.value * rowsPerPage.value)
6565
const highestLimit = computed(() => (currentPage.value + 1) * rowsPerPage.value)
6666
67+
const sortedBy = defineModel<string | undefined>('sortedBy', { default: undefined })
68+
const sortedDesc = defineModel('sortedDesc', { default: false })
6769
function defaultSortFn (a: string | DsfrDataTableRow, b: string | DsfrDataTableRow) {
6870
const key = sortedBy.value ?? props.sorted
6971
// @ts-expect-error TS7015
@@ -76,9 +78,6 @@ function defaultSortFn (a: string | DsfrDataTableRow, b: string | DsfrDataTableR
7678
}
7779
return 0
7880
}
79-
80-
const sortedBy = defineModel<string | undefined>('sortedBy', { default: undefined })
81-
const sortedDesc = defineModel('sortedDesc', { default: false })
8281
function sortBy (key: string) {
8382
if (!props.sortableRows || (Array.isArray(props.sortableRows) && !props.sortableRows.includes(key))) {
8483
return

0 commit comments

Comments
 (0)