isAutoDocs detection was corrected
This commit is contained in:
parent
f8e2aaa02a
commit
a7788ba5ff
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user