deployment fix
This commit is contained in:
parent
2528ad4726
commit
04f6fe5192
|
|
@ -65,7 +65,6 @@ export function usePinnedToView(editor: Editor | null, shapeId: string | undefin
|
|||
|
||||
// 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
|
||||
try {
|
||||
// Try to set a safe index value
|
||||
// Use conservative values that are known to work (a1, a2, b1, etc.)
|
||||
let newIndex: string = 'a2' // Safe default
|
||||
|
|
@ -103,7 +102,6 @@ export function usePinnedToView(editor: Editor | null, shapeId: string | undefin
|
|||
index: newIndex as any,
|
||||
})
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error bringing pinned shape to front:', error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue