diff options
author | bobzel <zzzman@gmail.com> | 2023-06-15 12:00:12 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-06-15 12:00:12 -0400 |
commit | d92775bffab6470dc6142e02092b7cae2c30b5ff (patch) | |
tree | 4ddd16288616b4003af511b76d8a3f06b264884f /src/fields/Doc.ts | |
parent | d6bb0b41e064fbe56672ebce7871d8c42dab38a6 (diff) |
fixes post-merge
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(); |