Skip to content

Commit

Permalink
fix: crash on removing images on preview screen [WPB-11147] (#3457)
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk authored and github-actions[bot] committed Sep 20, 2024
1 parent b7193b5 commit 45e0568
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ private fun Content(
CompositionLocalProvider(LocalOverscrollConfiguration provides null) {
HorizontalPager(
state = pagerState,
key = { index: Int ->
previewState.assetBundleList.getOrNull(index)?.assetBundle?.key ?: ""
},
modifier = Modifier
.width(configuration.screenWidthDp.dp)
.fillMaxHeight(),
Expand Down

0 comments on commit 45e0568

Please sign in to comment.