isAutoDocs detection was corrected

This commit is contained in:
Vladimir Khvan 2023-06-26 17:24:48 +05:00
parent f8e2aaa02a
commit a7788ba5ff

View File

@ -29,9 +29,8 @@ const StyledWrapper = styled.div`
`; `;
const Template = ({ onSaveClick, onCancelClick, ...args }) => { const Template = ({ onSaveClick, onCancelClick, ...args }) => {
const isAutoDocs = !!( const isAutoDocs =
typeof window !== "undefined" && window?.location?.href.includes("docs") typeof window !== "undefined" && window?.location?.href.includes("docs");
);
return ( return (
<StyledWrapper> <StyledWrapper>