TopCharts: Do not overwrite entire map

This commit is contained in:
Rahul Patel
2025-05-24 15:48:07 +05:30
parent 149c26035d
commit a352229b86

View File

@@ -91,7 +91,7 @@ class TopChartViewModel @Inject constructor(
clusterAppList = streamCluster.clusterAppList + newCluster.clusterAppList clusterAppList = streamCluster.clusterAppList + newCluster.clusterAppList
) )
stash[type] = mutableMapOf(chart to mergedCluster) stash[type]?.set(chart, mergedCluster)
} }
private fun targetCluster( private fun targetCluster(