Skip to content

Commit

Permalink
Dark: added ts expect error (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
GhitaNektt committed Jun 13, 2024
1 parent 7aba51e commit 74c4fd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vue3/src/components/Table/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function handleSubCompModel(row: number, accessor: string, data: unknown, parent
const propRow = props.data[row].row[accessor] as TableDataComposable;
rowsReplica.value[row].row[accessor].value = {
// @ts-expect-error - TS is crying about variant type here, but it's not a problem since it's valid
variant: propRow.variant,
data: {
...propRow.data,
Expand All @@ -136,6 +137,7 @@ function handleSubCompModel(row: number, accessor: string, data: unknown, parent
const propRow = props.data[parentRow].children![row][accessor] as TableDataComposable;
rowsReplica.value[parentRow].children![row].row[accessor].value = {
// @ts-expect-error - TS is crying about variant type here, but it's not a problem since it's valid
variant: propRow.variant,
data: {
...propRow.data,
Expand Down

0 comments on commit 74c4fd9

Please sign in to comment.