diff options
author | bobzel <zzzman@gmail.com> | 2023-08-28 02:55:30 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-08-28 02:55:30 -0400 |
commit | f82baffbe4269deb257604a8203e10d727ff0a1b (patch) | |
tree | dacc2b2ef55f07b88a3f0cc8344862adb79c4227 /src/client/views/linking/LinkMenuGroup.tsx | |
parent | ae9ec0179e556f44bb9404f319d326321e73cb1f (diff) |
trying to fix more colors
Diffstat (limited to 'src/client/views/linking/LinkMenuGroup.tsx')
-rw-r--r-- | src/client/views/linking/LinkMenuGroup.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/linking/LinkMenuGroup.tsx b/src/client/views/linking/LinkMenuGroup.tsx index 8324a97d9..c1a5a634c 100644 --- a/src/client/views/linking/LinkMenuGroup.tsx +++ b/src/client/views/linking/LinkMenuGroup.tsx @@ -23,10 +23,10 @@ interface LinkMenuGroupProps { export class LinkMenuGroup extends React.Component<LinkMenuGroupProps> { private _menuRef = React.createRef<HTMLDivElement>(); - getBackgroundColor = (): string => { + getBackgroundColor = (): string | undefined => { const link_relationshipList = StrListCast(Doc.UserDoc().link_relationshipList); const linkColorList = StrListCast(Doc.UserDoc().link_ColorList); - let color = 'white'; + let color: string | undefined; // if this link's relationship property is not default "link", set its color if (link_relationshipList) { const relationshipIndex = link_relationshipList.indexOf(this.props.groupType); |