diff options
| author | bobzel <zzzman@gmail.com> | 2024-07-22 15:26:27 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-07-22 15:26:27 -0400 |
| commit | 31b1872be1e8d010d2cbe08e92c589505e86d293 (patch) | |
| tree | c28adb82ecaae00c780d9ba3f560d93e3df69eef /src/client/views/StyleProvider.tsx | |
| parent | a357ea1c8415230527350393c1bfedd2c6cc3827 (diff) | |
adding type fixes to avoid 'any's
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
| -rw-r--r-- | src/client/views/StyleProvider.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index 618f69221..9cb52aacf 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -144,7 +144,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<FieldViewProps & highlightStyle: doc.isGroup ? "dotted": highlightStyle, highlightColor, highlightIndex, - highlightStroke: layoutDoc?.layout_isSvg, + highlightStroke: BoolCast(layoutDoc?.layout_isSvg), }; } } @@ -378,6 +378,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<FieldViewProps & } default: } + return undefined; } export function DashboardToggleButton(doc: Doc, field: string, onIcon: IconProp, offIcon: IconProp, clickFunc?: () => void) { |
