Skip to content

Commit

Permalink
[Fix] Only display tooltip when single environment mode
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Huang <[email protected]>
  • Loading branch information
kentwelcome committed Dec 30, 2024
1 parent 41a5394 commit b09d1ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/src/components/lineage/LineageViewTopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { findByRunType } from "../run/registry";
import { ChevronDownIcon } from "@chakra-ui/icons";
import { trackHistoryAction } from "@/lib/api/track";
import { DisableTooltipMessages } from "@/constants/tooltipMessage";
import { useRecceServerFlag } from "@/lib/hooks/useRecceServerFlag";

const SelectFilterTooltip = () => {
return (
Expand Down Expand Up @@ -243,6 +244,7 @@ const NodeSelectionInput = (props: {
tooltipComponent?: React.ReactNode;
}) => {
const [inputValue, setInputValue] = useState(props.value);
const { data: flags } = useRecceServerFlag();
const inputRef = useRef(null);

useEffect(() => {
Expand All @@ -259,6 +261,7 @@ const NodeSelectionInput = (props: {
color={"black"}
backgroundColor={"white"}
closeOnClick={false}
isDisabled={!flags?.single_env_onboarding}
>
<Input
ref={inputRef}
Expand Down

0 comments on commit b09d1ab

Please sign in to comment.