diff options
| author | geireann <geireann.lindfield@gmail.com> | 2023-03-16 11:16:19 -0400 |
|---|---|---|
| committer | geireann <geireann.lindfield@gmail.com> | 2023-03-16 11:16:19 -0400 |
| commit | a0ae93e3b14069c0de419fc5dcade84d460a0b30 (patch) | |
| tree | 40a3b49fc48975be3797bcb07c96771e32bdc77b /src/client/views/search | |
| parent | ab60751c36cb8cf8f87bbb9e1fe227deb3701121 (diff) | |
| parent | 0e55893d0f7f2a0aa5098df73d0ece5a7f1a4ddf (diff) | |
Merge branch 'master' into pres-trail-sophie
Diffstat (limited to 'src/client/views/search')
| -rw-r--r-- | src/client/views/search/SearchBox.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index 3ba60edd7..fe9b13fbe 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -5,7 +5,6 @@ import * as React from 'react'; import { DirectLinksSym, Doc, DocListCast, DocListCastAsync, Field, Opt } from '../../../fields/Doc'; import { Id } from '../../../fields/FieldSymbols'; import { DocCast, StrCast } from '../../../fields/Types'; -import { StopEvent } from '../../../Utils'; import { DocUtils } from '../../documents/Documents'; import { DocumentType } from '../../documents/DocumentTypes'; import { DocumentManager } from '../../util/DocumentManager'; @@ -470,7 +469,7 @@ export class SearchBox extends ViewBoxBaseComponent<SearchBoxProps>() { } } style={{ - fontWeight: DocListCast(fromDoc?.links).find( + fontWeight: LinkManager.Links(fromDoc).find( link => Doc.AreProtosEqual(LinkManager.getOppositeAnchor(link, fromDoc!), result[0] as Doc) || Doc.AreProtosEqual(DocCast(LinkManager.getOppositeAnchor(link, fromDoc!)?.annotationOn), result[0] as Doc) ) ? 'bold' |
