Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] 카테고리 중복 검사 IllegaStateException 버그 수정 #875

Open
KxxHyoRim opened this issue Jun 7, 2023 · 0 comments
Open
Assignees
Labels
FIX 버그, 오류 해결 HYORIM😎 효림

Comments

@KxxHyoRim
Copy link
Member

KxxHyoRim commented Jun 7, 2023

📝 DESCRIPTION

image

☑ TODO

  • _existingCategoryList이 null로 초기화 되는것으로 예상
  • 해당 코드 수정 예정
    fun getExistingCategoryList() {
        viewModelScope.launch {
            kotlin.runCatching {
                RetrofitObject.provideHavitApi(token).getAllCategories().data ?: emptyList()
            }.onSuccess { categoryList ->
                val tmp: MutableList<String> = mutableListOf()
                for (element in categoryList) tmp.add(element.title)
                _existingCategoryList.value = tmp
                _enterCategoryNameViewState.value = NetworkStatus.Success()
            }.onFailure {
                _enterCategoryNameViewState.value = NetworkStatus.Error(throwable = it)
            }
        }
    }
@KxxHyoRim KxxHyoRim added FIX 버그, 오류 해결 HYORIM😎 효림 labels Jun 7, 2023
@KxxHyoRim KxxHyoRim self-assigned this Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FIX 버그, 오류 해결 HYORIM😎 효림
Projects
None yet
Development

No branches or pull requests

1 participant