You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Desktop: Dev fix: TypeScript error
This commit is contained in:
@ -72,7 +72,7 @@ export function useSelectionRange(editor: any) {
|
|||||||
// and even infinite rendering loops. So before setting it on the state
|
// and even infinite rendering loops. So before setting it on the state
|
||||||
// we deep compare the previous and new selection.
|
// we deep compare the previous and new selection.
|
||||||
// https://github.com/laurent22/joplin/issues/3200
|
// https://github.com/laurent22/joplin/issues/3200
|
||||||
setSelectionRange(prev => {
|
setSelectionRange((prev:any) => {
|
||||||
if (selectionRangesEqual(prev, firstRange)) return prev;
|
if (selectionRangesEqual(prev, firstRange)) return prev;
|
||||||
return firstRange;
|
return firstRange;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user