mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Fix is_empty check
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user