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
|
// 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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue