Skip to content

Commit

Permalink
Fix an issue with title in the right sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
alexm-blaize committed Jan 5, 2023
1 parent 9ad493c commit b880c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/components/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Sidebar: FC<SidebarProps> = ({
const windowWidth = useWindowWidth();

useEffect(() => {
if (!previewNode?.id) {
if (previewNode?.id) {
setPreviewRoamNode(previewNode as OrgRoamNode);
}
}, [previewNode?.id]);
Expand Down

0 comments on commit b880c99

Please sign in to comment.