Skip to content

Commit

Permalink
test(headers): resolve linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed May 24, 2023
1 parent 1793cbb commit 124ccb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function createHeaders (
sortable: column.sortable ?? !!column.key,
})

fixedOffsets[i] += column.width ?? 0
fixedOffsets[i] += Number(column.width ?? 0)

This comment has been minimized.

Copy link
@scscgit

scscgit May 25, 2023

Contributor

The type is string | number since c8e5d28 (PR #17423), won't Number() cause an issue?

Also at a first glance, fixedOffsets[i] doesn't seem to be used anywhere except fixedOffset: fixedOffsets[i] before this assignment occurs, isn't this line redundant?

}
})

Expand Down

0 comments on commit 124ccb1

Please sign in to comment.