diff options
author | bobzel <zzzman@gmail.com> | 2023-08-28 14:12:05 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-08-28 14:12:05 -0400 |
commit | 611992db3635123da39c64a98ff656a5d2f38f7a (patch) | |
tree | 325b1ea2a22b2e8e2245a422761df6df91d07ed5 /src/fields/Doc.ts | |
parent | d98e6872ed8f567bf3cb45391a3c2068da148e76 (diff) |
fixed runtime error in sharing manager when sharing the dashboard
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index f17e10d9e..ad0e548ed 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1001,7 +1001,7 @@ export namespace Doc { references.add(doc); return; } - const excludeLists = doc.title === 'My Recently Closed' || doc.title === 'My Header Bar' || doc.title === 'My Dashboards'; + const excludeLists = ['My Recently Closed', 'My Header Bar', 'My Dashboards'].includes(StrCast(doc.title)); if (system !== undefined && ((system && !Doc.IsSystem(doc)) || (!system && Doc.IsSystem(doc)))) return; references.add(doc); Object.keys(doc).forEach(key => { |