mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 13:19:16 +00:00
Update the navmenu title if prop is updated and undefined
This commit is contained in:
@@ -46,6 +46,8 @@ export default function NavMenu(props: NavMenuProps) {
|
||||
setIsMobileWidth(window.innerWidth < 768);
|
||||
if (props.title) {
|
||||
setDisplayTitle(props.title);
|
||||
} else if (!props.title) {
|
||||
setDisplayTitle(undefined);
|
||||
}
|
||||
|
||||
}, [props.title]);
|
||||
|
||||
Reference in New Issue
Block a user