Fixed commit message being shared between tabs

This commit is contained in:
Abdelilah El Aissaoui 2022-06-24 01:58:46 +02:00
parent 5c879961ac
commit 7ce311d9b5

View File

@ -55,7 +55,7 @@ fun UncommitedChanges(
onHistoryFile: (String) -> Unit, onHistoryFile: (String) -> Unit,
) { ) {
val stageStatusState = statusViewModel.stageStatus.collectAsState() val stageStatusState = statusViewModel.stageStatus.collectAsState()
var commitMessage by remember { mutableStateOf(statusViewModel.savedCommitMessage.message) } var commitMessage by remember(statusViewModel) { mutableStateOf(statusViewModel.savedCommitMessage.message) }
val stagedListState by statusViewModel.stagedLazyListState.collectAsState() val stagedListState by statusViewModel.stagedLazyListState.collectAsState()
val unstagedListState by statusViewModel.unstagedLazyListState.collectAsState() val unstagedListState by statusViewModel.unstagedLazyListState.collectAsState()