Skip to content

Commit

Permalink
fixme 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
eastshine2741 committed Jan 1, 2024
1 parent 941fd9e commit a1b8e2d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import androidx.paging.map
import com.wafflestudio.snutt2.data.current_table.CurrentTableRepository
import com.wafflestudio.snutt2.data.lecture_search.LectureSearchRepository
import com.wafflestudio.snutt2.lib.*
import com.wafflestudio.snutt2.lib.network.ApiOnError
import com.wafflestudio.snutt2.lib.network.dto.core.LectureDto
import com.wafflestudio.snutt2.model.TagDto
import com.wafflestudio.snutt2.model.TagType
Expand All @@ -23,6 +24,7 @@ import javax.inject.Inject
class SearchViewModel @Inject constructor(
private val currentTableRepository: CurrentTableRepository,
private val lectureSearchRepository: LectureSearchRepository,
private val apiOnError: ApiOnError,
) : ViewModel() {

var lazyListState = LazyListState(0, 0)
Expand Down Expand Up @@ -63,9 +65,10 @@ class SearchViewModel @Inject constructor(
clear()
_placeHolderState.emit(true)
try {
fetchSearchTagList() // FIXME: 학기가 바뀔 때마다 불러주는 것으로 되어 있는데, 여기서 apiOnError 붙이기?
fetchSearchTagList()
getBookmarkList()
} catch (e: Exception) {
apiOnError(e)
}
}
}
Expand Down

0 comments on commit a1b8e2d

Please sign in to comment.