aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MainView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-24 18:09:48 -0400
committerbobzel <zzzman@gmail.com>2020-08-24 18:09:48 -0400
commit2e4ab06f38323bba06a4d77c04da1507bac5657f (patch)
tree26daaa5b4f8c76a7e990a9ad81d6cdcae9108e71 /src/client/views/MainView.tsx
parent385fc8bbcb36b5f062f0202a4fb74bcfba00b150 (diff)
moved contexts from properties button to properties view section
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r--src/client/views/MainView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index b036adcd4..9189c1951 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -357,7 +357,7 @@ export class MainView extends React.Component {
defaultBackgroundColors = (doc: Opt<Doc>, renderDepth: number) => {
if (doc?.type === DocumentType.COL) {
- const system = Object.getOwnPropertyNames(doc).indexOf("system") !== -1;
+ const system = Doc.IsSystem(doc);
return system ? "lightgrey" : StrCast(renderDepth > 0 ? Doc.UserDoc().activeCollectionNestedBackground : Doc.UserDoc().activeCollectionBackground);
}
if (this.darkScheme) {