diff options
author | Aubrey-Li <aubreylys@hotmail.com> | 2022-04-26 23:00:33 -0400 |
---|---|---|
committer | Aubrey-Li <aubreylys@hotmail.com> | 2022-04-26 23:00:33 -0400 |
commit | 840ae11365edd744f37fb266c0ae33094cd0d9a8 (patch) | |
tree | 8938fceaac1eb7d3f630fda4be8e41fa27b883e3 /src/client/views/nodes/DocumentView.tsx | |
parent | 313c761f4207d55ebda05c18c2bd4a42539fdfe0 (diff) | |
parent | 08217336445cf2b3cd3efbe97e3c83525f02bf1b (diff) |
Merge branch 'master' into presentation_upgrade
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index f5a9e3b3e..a0da69ff1 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -1084,7 +1084,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps TraceMobx(); const thumb = ImageCast(this.layoutDoc["thumb-frozen"], ImageCast(this.layoutDoc.thumb))?.url.href.replace(".png", "_m.png"); const isButton = this.props.Document.type === DocumentType.FONTICON; - if (!(this.props.Document instanceof Doc) || GetEffectiveAcl(this.props.Document[DataSym]) === AclPrivate || this.hidden) return null; + if (!(this.props.Document instanceof Doc) || GetEffectiveAcl(this.props.Document[DataSym]) === AclPrivate || (this.hidden && !this.props.treeViewDoc)) return null; return this.docContents ?? <div className={`documentView-node${this.topMost ? "-topmost" : ""}`} id={this.props.Document[Id]} |