diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2023-06-15 12:47:31 -0400 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2023-06-15 12:47:31 -0400 |
commit | 40579c8b3cf0504ac10e966e640af58e8876acd3 (patch) | |
tree | cc280d53b66d244eae6bd1e5c5d00a0d6b1dc3ea /src/fields/Doc.ts | |
parent | e31f6403bc62faea72767f68d3bf34ac8bd28183 (diff) | |
parent | d92775bffab6470dc6142e02092b7cae2c30b5ff (diff) |
Merge branch 'collaboration-sarah' of https://github.com/brown-dash/Dash-Web into collaboration-sarah
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 555e768c1..3116fd70b 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1267,9 +1267,7 @@ export namespace Doc { } // don't bother memoizing (caching) the result if called from a non-reactive context. (plus this avoids a warning message) export function IsBrushedDegreeUnmemoized(doc: Doc) { - if (!doc || GetEffectiveAcl(doc) === AclPrivate || GetEffectiveAcl(Doc.GetProto(doc)) === AclPrivate || doc.opacity === 0) { - return DocBrushStatus.unbrushed; - } + if (!doc || GetEffectiveAcl(doc) === AclPrivate || GetEffectiveAcl(Doc.GetProto(doc)) === AclPrivate || doc.opacity === 0) return DocBrushStatus.unbrushed; const status = brushManager.BrushedDoc.has(doc) ? DocBrushStatus.selfBrushed : brushManager.BrushedDoc.has(Doc.GetProto(doc)) ? DocBrushStatus.protoBrushed : DocBrushStatus.unbrushed; if (status === DocBrushStatus.unbrushed) { const lastBrushed = Array.from(brushManager.BrushedDoc.keys()).lastElement(); |