diff options
author | bobzel <zzzman@gmail.com> | 2020-10-06 13:14:32 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-06 13:14:32 -0400 |
commit | 82355dad8304a3264349734a94db13aa94bb277c (patch) | |
tree | 608e9a4011486d8c6e44873ea4ba3aa3502d6f6a /src/client/views/DocComponent.tsx | |
parent | 68916ee8daafb03ad2aff3338e18ca419ce888de (diff) |
cleanup fixes.
Diffstat (limited to 'src/client/views/DocComponent.tsx')
-rw-r--r-- | src/client/views/DocComponent.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocComponent.tsx b/src/client/views/DocComponent.tsx index d6f8c49df..98e888538 100644 --- a/src/client/views/DocComponent.tsx +++ b/src/client/views/DocComponent.tsx @@ -123,7 +123,7 @@ export function ViewBoxAnnotatableComponent<P extends ViewBoxAnnotatableProps, T @action.bound removeDocument(doc: Doc | Doc[]): boolean { const effectiveAcl = GetEffectiveAcl(this.dataDoc); - const indocs = doc instanceof Doc ? [doc] : doc as Doc[]; + const indocs = doc instanceof Doc ? [doc] : doc; const docs = indocs.filter(doc => effectiveAcl === AclEdit || effectiveAcl === AclAdmin || GetEffectiveAcl(doc) === AclAdmin); if (docs.length) { const docs = doc instanceof Doc ? [doc] : doc; |