diff options
| author | bobzel <zzzman@gmail.com> | 2021-07-29 18:49:02 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-07-29 18:49:02 -0400 |
| commit | 3d4716badd33afe0776da7fdd907a057ac88d698 (patch) | |
| tree | 43f47b013f6a298d6703d4ebe67f85c55bc18715 /src/client/views/SidebarAnnos.tsx | |
| parent | e950b1828e2331f840b3b25dc9f8cb332ffe0105 (diff) | |
fixed navigating to a PDF anchor from sidebar.
Diffstat (limited to 'src/client/views/SidebarAnnos.tsx')
| -rw-r--r-- | src/client/views/SidebarAnnos.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/SidebarAnnos.tsx b/src/client/views/SidebarAnnos.tsx index 9c5a54574..c5ae82c61 100644 --- a/src/client/views/SidebarAnnos.tsx +++ b/src/client/views/SidebarAnnos.tsx @@ -79,7 +79,7 @@ export class SidebarAnnos extends React.Component<FieldViewProps & ExtraProps> { sidebarStyleProvider = (doc: Opt<Doc>, props: Opt<FieldViewProps | DocumentViewProps>, property: string) => { if (property === StyleProp.ShowTitle) { - return doc === this.props.rootDoc ? 0 : StrCast(this.props.layoutDoc["sidebar-childShowTitle"], "title"); + return doc === this.props.rootDoc ? undefined : StrCast(this.props.layoutDoc["sidebar-childShowTitle"], "title"); } return this.props.styleProvider?.(doc, props, property); } |
