Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/obsidian/src/components/canvas/TldrawViewComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ export const TldrawPreviewComponent = ({
const [isReady, setIsReady] = useState(false);
const [isEditorMounted, setIsEditorMounted] = useState(false);
const isCreatingRelationRef = useRef(false);
const saveTimeoutRef = useRef<NodeJS.Timeout>(null);
const saveTimeoutRef = useRef<NodeJS.Timeout | null>(null);
const isSavingRef = useRef<boolean>(false);
const lastShiftClickRef = useRef<number>(0);
const SHIFT_CLICK_DEBOUNCE_MS = 300; // Prevent double clicks within 300ms
const lastSavedDataRef = useRef<string>("");
const editorRef = useRef<Editor>(null);
const editorRef = useRef<Editor | null>(null);
const plugin = usePlugin();

const customShapeUtils = [
Expand Down
Loading
Loading