Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: type error

emaileae858e20b22
diff --git a/web/src/hooks/useDebounce.ts b/web/src/hooks/useDebounce.ts
index 7d8418203..349c1c873 100644
--- a/web/src/hooks/useDebounce.ts
+++ b/web/src/hooks/useDebounce.ts
@@ -16,7 +16,7 @@ export default function useDebounce<T extends (...args: any[]) => any>(func: T,
}
}, []);
- const run = useCallback((...args) => {
+ const run = useCallback((...args: any) => {
cancel();
timer.current = window.setTimeout(() => {
func(...args);