1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2025-02-03 16:01:35 +00:00
This commit is contained in:
Felix Ableitner 2025-01-31 22:27:02 +01:00
parent c588e71e60
commit 80aa08d795

View file

@ -43,7 +43,7 @@ pub fn EditArticle() -> impl IntoView {
if let Some(conflict_id) = conflict_id { if let Some(conflict_id) = conflict_id {
let conflict_id = conflict_id.parse().map(ConflictId); let conflict_id = conflict_id.parse().map(ConflictId);
spawn_local(async move { spawn_local(async move {
CLIENT if let Some(conflict) = CLIENT
.notifications_list() .notifications_list()
.await .await
.ok() .ok()
@ -54,10 +54,10 @@ pub fn EditArticle() -> impl IntoView {
_ => None, _ => None,
}) })
.find(|c| Ok(c.id) == conflict_id) .find(|c| Ok(c.id) == conflict_id)
.map(|conflict| { {
set_edit_response.set(EditResponse::Conflict(conflict)); set_edit_response.set(EditResponse::Conflict(conflict));
set_edit_error.set(Some(CONFLICT_MESSAGE.to_string())); set_edit_error.set(Some(CONFLICT_MESSAGE.to_string()));
}); }
}) })
} }