web: fix note title in toolbar not changing

This commit is contained in:
Abdullah Atta
2024-01-29 15:45:13 +05:00
parent 807bd683b7
commit cd90030616

View File

@@ -94,8 +94,7 @@ function Toolbar() {
}, [isTitleVisible]);
useEffect(() => {
if (onScrollTitleRef.current)
onScrollTitleRef.current.defaultValue = title;
if (onScrollTitleRef.current) onScrollTitleRef.current.value = title;
}, [title]);
const tools = useMemo(