How to select specific data.id

code: useEffect(() => {
const fetchData = async () => {
try {
const response = await jwtInterceptor.get(/contrato-assinados/394?${query}, {
headers: {
Authorization: Bearer ${token},
},
});

    const firstId = response?.data?.usuario_ids?.data?.[0]?.id;

    console.log("IDkkkk:", firstId);

    setSearchResult(firstId);
    console.log("ID22222", firstId);

    if (firstId !== undefined) {
      localStorage.setItem("idRenan", firstId.toString());
      console.log("ID salvo no localStorage");
    } else {
      console.log("ID inválido");
    }
  } catch (error) {
    console.error(error);
  }
};

fetchData();

}, []);

in the browser console it is giving undefinede
chrome_gMIuP4d6jH