diff options
Diffstat (limited to 'src/view')
-rw-r--r-- | src/view/com/search/SearchResults.tsx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/view/com/search/SearchResults.tsx b/src/view/com/search/SearchResults.tsx index 5d6163d4b..3b05f75ea 100644 --- a/src/view/com/search/SearchResults.tsx +++ b/src/view/com/search/SearchResults.tsx @@ -49,7 +49,7 @@ const PostResults = observer(({model}: {model: SearchUIModel}) => { ) } - if (model.postUris.length === 0) { + if (model.posts.length === 0) { return ( <CenteredView> <Text type="xl" style={[styles.empty, pal.text]}> @@ -61,8 +61,13 @@ const PostResults = observer(({model}: {model: SearchUIModel}) => { return ( <ScrollView style={pal.view}> - {model.postUris.map(uri => ( - <Post key={uri} uri={uri} hideError /> + {model.posts.map(post => ( + <Post + key={post.resolvedUri} + uri={post.resolvedUri} + initView={post} + hideError + /> ))} <View style={s.footerSpacer} /> <View style={s.footerSpacer} /> |