diff --git a/app/src/main/kotlin/cn/super12138/todo/ui/pages/editor/TodoEditorPage.kt b/app/src/main/kotlin/cn/super12138/todo/ui/pages/editor/TodoEditorPage.kt index 1747f01..c77b033 100644 --- a/app/src/main/kotlin/cn/super12138/todo/ui/pages/editor/TodoEditorPage.kt +++ b/app/src/main/kotlin/cn/super12138/todo/ui/pages/editor/TodoEditorPage.kt @@ -91,7 +91,6 @@ fun TodoEditorPage( val index = categories.firstOrNull { it.name == toDo.category }?.id ?: -1 defaultIndex = index uiState.selectedCategoryIndex = index - if (index != -1) uiState.categoryContent = "" } }