Skip to content

Commit

Permalink
Fix WidgetConfigurationCard.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
w2sv committed Nov 24, 2024
1 parent 099c139 commit 2b107ad
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.unit.dp
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.w2sv.common.utils.moveElement
import com.w2sv.composed.extensions.thenIf
import com.w2sv.domain.model.WidgetBottomBarElement
import com.w2sv.domain.model.WidgetRefreshingParameter
Expand Down Expand Up @@ -120,7 +119,7 @@ fun rememberWidgetConfigurationCardProperties(
.update {
it
.toMutableList()
.apply { moveElement(fromIndex, toIndex) }
.apply { add(toIndex, removeAt(fromIndex)) }
}
}
)
Expand Down

0 comments on commit 2b107ad

Please sign in to comment.