diff --git a/components/agents/AgentPsdTemplateEditorDialog.tsx b/components/agents/AgentPsdTemplateEditorDialog.tsx index 3c14db477..9330978b2 100644 --- a/components/agents/AgentPsdTemplateEditorDialog.tsx +++ b/components/agents/AgentPsdTemplateEditorDialog.tsx @@ -2092,10 +2092,6 @@ export function AgentPsdTemplateEditorDialog({ ? effectiveTextPositionOffsets[selectedTextLayer.id] || normalizeTextPositionOffset() : normalizeTextPositionOffset(); - const selectedLayerPositionOffset = selectedLayer - ? effectiveLayerPositionOffsets[selectedLayer.id] || - normalizeLayerPositionOffset() - : normalizeLayerPositionOffset(); const isSelectedImageExtending = Boolean( selectedImageLayer && extendingSlotId === selectedImageLayer.id ); @@ -2118,16 +2114,16 @@ export function AgentPsdTemplateEditorDialog({ return; } setHiddenLayerIds((current) => - current.filter((currentLayerId) => currentLayerId !== normalizedLayerId) + current.filter((currentLayerId) => currentLayerId !== normalizedLayerId) ); } const selectedLayerPositionPanel = selectedLayer ? (