Fix is_empty check

This commit is contained in:
Gregory Schier
2023-11-10 09:12:20 -08:00
parent 39c97681cf
commit b6eb7418aa

View File

@@ -253,7 +253,7 @@ async fn actually_send_request(
response = models::update_response_if_id(&response, pool) response = models::update_response_if_id(&response, pool)
.await .await
.expect("Failed to update response"); .expect("Failed to update response");
if request.id.is_empty() { if !request.id.is_empty() {
emit_side_effect(app_handle, "updated_model", &response); emit_side_effect(app_handle, "updated_model", &response);
} }
Ok(response) Ok(response)