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}
|
maxLength={MAX_TITLE_LENGTH}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{!shareId && (
|
||||||
<DocumentMetaWithViews
|
<DocumentMetaWithViews
|
||||||
isDraft={isDraft}
|
isDraft={isDraft}
|
||||||
document={document}
|
document={document}
|
||||||
to={documentHistoryUrl(document)}
|
to={documentHistoryUrl(document)}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
<Editor
|
<Editor
|
||||||
ref={innerRef}
|
ref={innerRef}
|
||||||
autoFocus={!!title && !this.props.defaultValue}
|
autoFocus={!!title && !this.props.defaultValue}
|
||||||
|
|
Reference in New Issue