fix: 取消在有预置分类时清空分类文本框
This commit is contained in:
parent
199bb8bbff
commit
0f5532de8a
1 changed files with 0 additions and 1 deletions
|
|
@ -91,7 +91,6 @@ fun TodoEditorPage(
|
||||||
val index = categories.firstOrNull { it.name == toDo.category }?.id ?: -1
|
val index = categories.firstOrNull { it.name == toDo.category }?.id ?: -1
|
||||||
defaultIndex = index
|
defaultIndex = index
|
||||||
uiState.selectedCategoryIndex = index
|
uiState.selectedCategoryIndex = index
|
||||||
if (index != -1) uiState.categoryContent = ""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue