fix #181: al darle a siguiente desde estructura, se fuerza la regeneración de citas

This commit was merged in pull request #184.
This commit is contained in:
2026-03-13 12:38:02 -06:00
parent 0d636cbf3b
commit 8bdaf935ca

View File

@@ -1237,6 +1237,15 @@ export function NuevaBibliografiaModalContainer({
const ok = const ok =
formatoStepRef.current?.validateBeforeNext() ?? true formatoStepRef.current?.validateBeforeNext() ?? true
if (!ok) return if (!ok) return
if (wizard.metodo === 'EN_LINEA' && wizard.formato) {
void generateCitasForFormato(
wizard.formato,
wizard.refs,
{
force: true,
},
)
}
} }
methods.next() methods.next()
}} }}