fix: 取消在有预置分类时清空分类文本框

This commit is contained in:
Super12138 2025-07-04 11:51:43 +08:00
parent 199bb8bbff
commit 0f5532de8a

View file

@ -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 = ""
}
}