Fix failing CI on main (#43956)

Release Notes:

- N/A
This commit is contained in:
Finn Evers
2025-12-01 23:27:27 +00:00
committed by GitHub
parent bd79edee71
commit 99d8d34d48
+2 -5
View File
@@ -896,7 +896,6 @@ impl Zeta {
.await;
Self::handle_api_response(&this, response, cx)?;
dbg!();
anyhow::Ok(())
})
.detach_and_log_err(cx);
@@ -912,7 +911,6 @@ impl Zeta {
let llm_token = self.llm_token.clone();
let app_version = AppVersion::global(cx);
let last_rejection = self.rejected_predictions.last().cloned();
dbg!(self.rejected_predictions.len());
let Some(last_rejection) = last_rejection else {
return Task::ready(anyhow::Ok(()));
};
@@ -940,11 +938,10 @@ impl Zeta {
.context("Failed to reject edit predictions")?;
this.update(cx, |this, _| {
if let Some(ix) =
dbg!(this
if let Some(ix) = this
.rejected_predictions
.iter()
.position(|rejection| rejection.request_id == last_rejection.request_id))
.position(|rejection| rejection.request_id == last_rejection.request_id)
{
this.rejected_predictions.drain(..ix + 1);
}