Fix is_empty check

This commit is contained in:
Gregory Schier
2023-11-10 09:12:20 -08:00
parent 0bec5a6405
commit 004fef6729

View File

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