diff --git a/crates/edit_prediction/src/edit_prediction.rs b/crates/edit_prediction/src/edit_prediction.rs index cfc5c7efe348b7238813853bbf3e5fd70047340d..252516a28dcc058bfff9a57b20c656e31d62d25f 100644 --- a/crates/edit_prediction/src/edit_prediction.rs +++ b/crates/edit_prediction/src/edit_prediction.rs @@ -804,8 +804,11 @@ impl EditPredictionStore { while current_user.borrow().is_none() { current_user.next().await; } + this.update(cx, |this, cx| { - this.refresh_available_experiments(cx); + if cx.is_staff() { + this.refresh_available_experiments(cx); + } }) .log_err(); });