refactor: improve type safety and error handling in vacation management components
- Updated the `AprovarFerias.svelte` component to use specific types for `solicitacao` and `gestorId`, enhancing type safety. - Improved error handling by refining catch blocks to handle errors more accurately. - Made minor adjustments to ensure consistent code formatting and readability across the component.
This commit is contained in:
@@ -39,7 +39,11 @@
|
||||
}
|
||||
});
|
||||
|
||||
$inspect(authStore.usuario?.funcionarioId);
|
||||
// Debug: Verificar funcionarioId
|
||||
$effect(() => {
|
||||
console.log("🔍 [Perfil] funcionarioId:", authStore.usuario?.funcionarioId);
|
||||
console.log("🔍 [Perfil] Usuário completo:", authStore.usuario);
|
||||
});
|
||||
|
||||
// Queries
|
||||
const funcionarioQuery = $derived(
|
||||
|
||||
Reference in New Issue
Block a user