refactor: text type option test

This commit is contained in:
appflowy
2022-09-27 14:20:18 +08:00
parent 9b78f35ffe
commit 84aa156885
5 changed files with 86 additions and 99 deletions

View File

@ -210,7 +210,7 @@ impl ViewController {
let index = views
.iter()
.position(|view| view.id == view_id)
.and_then(|index| Some(index as i32));
.map(|index| index as i32);
Ok(DeletedViewPB {
view_id: view_id.clone(),
index,