fix(StatusChatList): unexisting property name for chat item fixed

`StatusChatList` component is able to display:
- chats for Chat section
- channels for Community section
- channels from a category from Community section

in cases 1. and 2. displayed items do not have `parentItemId` property and
it's not used in these cases.
This commit fixes that console error.
This commit is contained in:
Sale Djenic 2021-12-09 13:06:48 +01:00 committed by Michał Cieślak
parent 0f15cb6d5f
commit ce8603b0e1
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ Column {
opacity: dragSensor.active ? 0.0 : 1.0 opacity: dragSensor.active ? 0.0 : 1.0
originalOrder: model.position originalOrder: model.position
chatId: model.itemId chatId: model.itemId
categoryId: model.parentItemId categoryId: model.parentItemId? model.parentItemId : ""
name: model.name name: model.name
type: !!model.type ? model.type : StatusChatListItem.Type.CommunityChat type: !!model.type ? model.type : StatusChatListItem.Type.CommunityChat
muted: model.muted muted: model.muted