Updated on 2026-08-14
This commit is contained in:
parent
99e6086bf5
commit
6fa5222358
2 changed files with 1 additions and 6 deletions
|
|
@ -14,9 +14,7 @@ private fun internalReduce(action: Action, state: AppState): HomeState {
|
|||
when (action) {
|
||||
is HomeAction.InsertStory -> {
|
||||
state = state.copy(
|
||||
stories = state.stories.toMutableList().apply {
|
||||
add(action.position, action.story)
|
||||
},
|
||||
stories = listOf(action.story) + state.stories,
|
||||
)
|
||||
}
|
||||
is HomeAction.ScanInProgress -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue