La pantalla se volvía negra al abrir el dialogo de eliminar carrera

La razón es que se rendereaba un dialogo de borrado por carrera, pero al abrir uno se abrian los demás también
This commit is contained in:
Guillermo.Arrieta authored and Roberto.silva committed 2025-10-30 07:47:37 -06:00
1 parent d25b8b0441
commit 4cf93ff1f4
1 file changed
+4 -2
+4 -2
View File
@@ -134,7 +134,7 @@ function RouteComponent() {
async () => {
await qc.invalidateQueries({ queryKey: carrerasKeys.root })
router.invalidate()
setDeleteTarget(null)
// setDeleteTarget(null)
}
)
@@ -248,7 +248,7 @@ function RouteComponent() {
<Icons.Trash className="w-4 h-4 mr-2" /> Eliminar
</ContextMenuItem>
</ContextMenuContent>
{deleteDialog}
</ContextMenu>
)
})}
@@ -258,6 +258,8 @@ function RouteComponent() {
</CardContent>
</Card>
{deleteDialog}
{/* Crear / Editar */}
<CarreraFormDialog
open={createOpen}