mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 14:07:05 +05:30
fix(common): prevent link metadata resolution from creating fatal errors
This commit is contained in:
parent
a4be2d4bf2
commit
15dc9c3dc7
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@ fun CommentsHeader(
|
|||
produceState(
|
||||
initialValue = LinkMetadata(postDetails.url, null, null),
|
||||
) {
|
||||
value = postActions.getLinkMetadata(postDetails.url)
|
||||
runCatching { postActions.getLinkMetadata(postDetails.url) }
|
||||
.onSuccess { metadata -> value = metadata }
|
||||
}
|
||||
|
||||
Surface(color = MaterialTheme.colorScheme.background, modifier = modifier) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue