Skip to content

Commit

Permalink
fix: tableEl undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomarr committed Nov 12, 2024
1 parent 067a868 commit 7ed8e22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/DataTable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,9 @@ const resizeLine = () => {
return;
}
const tableEl = table.value;
if (!tableEl) {
return;
}
const cols: HTMLElement[] = tableEl.querySelectorAll('.robust-table-column');
const rowsWrapper = tableEl.querySelector('.rows-wrapper');
Expand All @@ -1159,6 +1162,9 @@ const createResizableTable = () => {
}
const tableEl = table.value;
if (!tableEl) {
return;
}
const cols: HTMLElement[] = tableEl.querySelectorAll('.robust-table-column');
const rowsWrapper = tableEl.querySelector('.rows-wrapper');
Expand Down

0 comments on commit 7ed8e22

Please sign in to comment.