Loading capif_frontend/src/pages/invokers/[id].js +1 −29 Original line number Diff line number Diff line Loading @@ -44,34 +44,6 @@ const Invokers = () => { } } const fetchDataMock = async () => { try { // Simular la obtención de datos de usuarios const eventsList = [ { "name": "SERVICE_API_AVAILABLE", "description": "Events related to the availability of service APIs after the service APIs are published.", "date": "2023-02-13T10:00:00.000Z" }, { "name": "SERVICE_API_UPDATE", "description": "Events related to change in service API information.", "date": "2023-10-13T10:00:00.000Z" }, // Agrega más usuarios según sea necesario ]; console.log(eventsList); // Actualiza el estado con la lista simulada de usuarios setInvokerEvents(eventsList); console.log(usersData); } catch (error) { console.error('Error fetching users:', error); } }; const handleDeleteClick = async (invokerId, aef_id, api_id) => { try { const { data } = await deleteSecurityContext(invokerId, aef_id, api_id) Loading @@ -84,7 +56,7 @@ const Invokers = () => { useEffect(() => { fetchData() }, [fetchData]) }, [fetch]) return ( <Grid container spacing={6}> Loading Loading
capif_frontend/src/pages/invokers/[id].js +1 −29 Original line number Diff line number Diff line Loading @@ -44,34 +44,6 @@ const Invokers = () => { } } const fetchDataMock = async () => { try { // Simular la obtención de datos de usuarios const eventsList = [ { "name": "SERVICE_API_AVAILABLE", "description": "Events related to the availability of service APIs after the service APIs are published.", "date": "2023-02-13T10:00:00.000Z" }, { "name": "SERVICE_API_UPDATE", "description": "Events related to change in service API information.", "date": "2023-10-13T10:00:00.000Z" }, // Agrega más usuarios según sea necesario ]; console.log(eventsList); // Actualiza el estado con la lista simulada de usuarios setInvokerEvents(eventsList); console.log(usersData); } catch (error) { console.error('Error fetching users:', error); } }; const handleDeleteClick = async (invokerId, aef_id, api_id) => { try { const { data } = await deleteSecurityContext(invokerId, aef_id, api_id) Loading @@ -84,7 +56,7 @@ const Invokers = () => { useEffect(() => { fetchData() }, [fetchData]) }, [fetch]) return ( <Grid container spacing={6}> Loading