deployment fix

This commit is contained in:
Jeff Emmett 2025-11-11 22:42:38 -08:00
parent 2528ad4726
commit 04f6fe5192
1 changed files with 34 additions and 36 deletions

View File

@ -65,7 +65,6 @@ export function usePinnedToView(editor: Editor | null, shapeId: string | undefin
// Bring the shape to the front by manually setting index // Bring the shape to the front by manually setting index
// Note: sendToFront doesn't exist in this version of tldraw, so we use manual index setting // Note: sendToFront doesn't exist in this version of tldraw, so we use manual index setting
try {
// Try to set a safe index value // Try to set a safe index value
// Use conservative values that are known to work (a1, a2, b1, etc.) // Use conservative values that are known to work (a1, a2, b1, etc.)
let newIndex: string = 'a2' // Safe default let newIndex: string = 'a2' // Safe default
@ -103,7 +102,6 @@ export function usePinnedToView(editor: Editor | null, shapeId: string | undefin
index: newIndex as any, index: newIndex as any,
}) })
} }
}
} catch (error) { } catch (error) {
console.error('Error bringing pinned shape to front:', error) console.error('Error bringing pinned shape to front:', error)
} }