mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix: replace noop function (#2744)
This commit is contained in:
@@ -24,7 +24,7 @@ function rpcToObservable<
|
||||
onSubscribe?.();
|
||||
if (typeof window === 'undefined' || !env.isDesktop || !event) {
|
||||
subscriber.complete();
|
||||
return () => {};
|
||||
return;
|
||||
}
|
||||
handler?.()
|
||||
.then(t => {
|
||||
|
||||
@@ -30,7 +30,7 @@ function useMouseOffset() {
|
||||
el.removeEventListener('mouseleave', onMouseLeave);
|
||||
};
|
||||
}
|
||||
return () => {};
|
||||
return;
|
||||
}, []);
|
||||
|
||||
return [offset, outside, ref] as const;
|
||||
|
||||
Reference in New Issue
Block a user