diff options
author | bobzel <zzzman@gmail.com> | 2021-04-01 12:14:10 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-04-01 12:14:10 -0400 |
commit | 0c94efd0a2584d23f5ba8f54b41c8f313ff7c8c4 (patch) | |
tree | 927b3145ae4a6f012e9e680e358e84c00c7aec31 /src | |
parent | 7125bf2c1138637c9753b565b0690bb0fb5d93d0 (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/TreeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx index d9ecc7083..3ce113695 100644 --- a/src/client/views/collections/TreeView.tsx +++ b/src/client/views/collections/TreeView.tsx @@ -96,7 +96,7 @@ export class TreeView extends React.Component<TreeViewProps> { get displayName() { return "TreeView(" + this.props.document.title + ")"; } // this makes mobx trace() statements more descriptive get defaultExpandedView() { return this.props.treeView.fileSysMode ? (this.doc.isFolder ? this.fieldKey : "aliases") : - this.props.treeView.outlineMode || this.childDocs ? this.fieldKey : Doc.UserDoc().noviceMode ? "layout" : "fields"; + this.props.treeView.outlineMode || this.childDocs ? this.fieldKey : Doc.UserDoc().noviceMode ? "layout" : StrCast(this.props.treeView.doc.treeViewExpandedView, "fields"); } @computed get doc() { return this.props.document; } |