diff --git a/scm-ui/ui-components/src/index.ts b/scm-ui/ui-components/src/index.ts index 00442e9d32..d929fb6c8e 100644 --- a/scm-ui/ui-components/src/index.ts +++ b/scm-ui/ui-components/src/index.ts @@ -91,6 +91,7 @@ export { default as copyToClipboard } from "./CopyToClipboard"; export { createA11yId } from "./createA11yId"; export { useSecondaryNavigation } from "./useSecondaryNavigation"; export { default as useScrollToElement } from "./useScrollToElement"; +export { default as DiffDropDown } from "./repos/DiffDropDown"; export { default as comparators } from "./comparators"; diff --git a/scm-ui/ui-components/src/repos/DiffDropDown.tsx b/scm-ui/ui-components/src/repos/DiffDropDown.tsx index 6956376227..3473b2484e 100644 --- a/scm-ui/ui-components/src/repos/DiffDropDown.tsx +++ b/scm-ui/ui-components/src/repos/DiffDropDown.tsx @@ -39,7 +39,7 @@ const DiffDropDown: FC = ({ collapseDiffs, ignoreWhitespaces, ignoreWhitespaces(); ignoreWhitespaces(); } - }, [ignoreWhitespaces, renderOnMount]); + }, []); const handleOpen = () => { setOpen(!isOpen);