Fix new document creation. Add collection name to DocumentPreview in search results
This commit is contained in:
@@ -151,6 +151,8 @@ type Props = {
|
||||
|
||||
renderHeading(isEditing: boolean) {
|
||||
invariant(this.document, 'document not available');
|
||||
if (this.props.newDocument) return;
|
||||
|
||||
return (
|
||||
<InfoWrapper visible={!isEditing}>
|
||||
<PublishingInfo
|
||||
|
||||
@@ -125,6 +125,7 @@ const StyledArrowKeyNavigation = styled(ArrowKeyNavigation)`
|
||||
key={document.id}
|
||||
document={document}
|
||||
highlight={this.store.searchTerm}
|
||||
showCollection
|
||||
/>
|
||||
))}
|
||||
</StyledArrowKeyNavigation>
|
||||
|
||||
Reference in New Issue
Block a user