fix: Unauthorized request to views.list from shared documents
This commit is contained in:
parent
2ca57fc7cf
commit
48f54b5aa2
|
@ -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}
|
||||
|
|
Reference in New Issue