Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class FriendProfileViewModel
_uiEvent.send(FriendProfileUIEvent.RecordFriendShipSuccess)
_friendShipRecordStateFlow.update { recordState ->
recordState.copy(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Setting isEmpty to false here will cause the grid to always show the record item, even when the record list is empty. Consider checking if the record list is empty before setting isEmpty to false.

Alternatively, you can remove the isEmpty flag altogether and derive its value directly from the records list.

                            //isEmpty = false,

isEmpty = false,
records =
listOf(
FriendRecord(
Expand Down