fix: Unauthorized request to views.list from shared documents

This commit is contained in:
Tom Moor 2021-06-13 18:24:02 -07:00
parent 2ca57fc7cf
commit 48f54b5aa2
1 changed files with 7 additions and 5 deletions

View File

@ -132,11 +132,13 @@ class DocumentEditor extends React.Component<Props> {
maxLength={MAX_TITLE_LENGTH}
/>
)}
<DocumentMetaWithViews
isDraft={isDraft}
document={document}
to={documentHistoryUrl(document)}
/>
{!shareId && (
<DocumentMetaWithViews
isDraft={isDraft}
document={document}
to={documentHistoryUrl(document)}
/>
)}
<Editor
ref={innerRef}
autoFocus={!!title && !this.props.defaultValue}