calculo: fix pensaoalimenticia

Signed-off-by: Rodrigo B. de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
rodrigo committed 2025-07-16 16:16:17 -03:00
1 parent ae71161860
commit 3f012552e7
2 files changed
+7 -2

No files matched your search

@@ -32,6 +32,11 @@ export function DetalhePensaoAlimenticia() {
const [loading, setLoading] = useState(true);
useEffect(() => {
if (id === "novo") {
setLoading(false);
setCalculo(null);
return;
}
const loadCalculo = async () => {
try {
// Buscar cálculo pelo endpoint correto