🐛 Fix error when body haven't attachment in post
This commit is contained in:
parent
8366bda846
commit
ef58430060
@ -293,7 +293,8 @@ class _PostItemState extends State<PostItem> {
|
||||
),
|
||||
child: AttachmentList(
|
||||
parentId: widget.item.id.toString(),
|
||||
attachmentsId: item.body['attachments'].cast<int>() ?? List.empty(),
|
||||
attachmentsId:
|
||||
item.body['attachments']?.cast<int>() ?? List.empty(),
|
||||
divided: true,
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user