los mensajes de errores se envian como message
This commit is contained in:
@@ -52,7 +52,7 @@ export const useAsistenciasStore = defineStore('asistencias', {
|
||||
await this.fetchAsistencias(); // Refresh the list
|
||||
return data;
|
||||
} catch (error) {
|
||||
console.error('Error creating asistencia:', error);
|
||||
console.error('Error creating asistencia:', error.message);
|
||||
throw error; // Re-throw to allow form to handle it
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user