Scroll bug fix (#11061)

## Addresses #9988

Manual QA 

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
Jacob Shandling
2023-04-07 11:56:14 -07:00
committed by GitHub
co-authored by Jacob Shandling
parent 71e2e4d07c
commit 7a1ee3a97d
@@ -1,6 +1,7 @@
import React from "react";
import classnames from "classnames";
import TooltipWrapper from "components/TooltipWrapper";
interface IHeaderCellProps {
value: string | JSX.Element; // either a string or a TooltipWrapper
@@ -27,7 +28,7 @@ const HeaderCell = ({
let lastColumnHeaderWithTooltipClass = "";
if (
typeof value !== "string" &&
value.type.name === "TooltipWrapper" &&
value.type === TooltipWrapper &&
isLastColumn
) {
lastColumnHeaderWithTooltipClass = "last-col-header-with-tip";