mirror of
https://github.com/Nutomic/ibis.git
synced 2025-02-03 13:01:34 +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 {
|
||||
let conflict_id = conflict_id.parse().map(ConflictId);
|
||||
spawn_local(async move {
|
||||
CLIENT
|
||||
if let Some(conflict) = CLIENT
|
||||
.notifications_list()
|
||||
.await
|
||||
.ok()
|
||||
|
@ -54,10 +54,10 @@ pub fn EditArticle() -> impl IntoView {
|
|||
_ => None,
|
||||
})
|
||||
.find(|c| Ok(c.id) == conflict_id)
|
||||
.map(|conflict| {
|
||||
set_edit_response.set(EditResponse::Conflict(conflict));
|
||||
set_edit_error.set(Some(CONFLICT_MESSAGE.to_string()));
|
||||
});
|
||||
{
|
||||
set_edit_response.set(EditResponse::Conflict(conflict));
|
||||
set_edit_error.set(Some(CONFLICT_MESSAGE.to_string()));
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue