mirror of
https://github.com/Nutomic/ibis.git
synced 2025-02-03 16:01:35 +00:00
clippy
This commit is contained in:
parent
c588e71e60
commit
80aa08d795
1 changed files with 5 additions and 5 deletions
|
@ -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()));
|
||||||
});
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue