fix: Toggling history sidebar should not push into history stack

This commit is contained in:
Tom Moor
2022-09-13 00:34:00 +01:00
parent 34fd039b6c
commit 6502aff4ef
2 changed files with 10 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ function DocumentMetaWithViews({ to, isDraft, document, ...rest }: Props) {
});
return (
<Meta document={document} to={to} {...rest}>
<Meta document={document} to={to} replace {...rest}>
{totalViewers && !isDraft ? (
<PopoverDisclosure {...popover}>
{(props) => (