aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/StyleProvider.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-08-23 00:45:10 -0400
committerbobzel <zzzman@gmail.com>2024-08-23 00:45:10 -0400
commitadd4926f62b397fc6c655be31a711dd7b83b469a (patch)
treee31a599fef8c45d5a962d6dd613daad3872d9242 /src/client/views/StyleProvider.tsx
parentefb80649dc524d152b424c8c539e4fee33450403 (diff)
starting to cleanup keywordsBox
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r--src/client/views/StyleProvider.tsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx
index 374399445..1e80e7ee5 100644
--- a/src/client/views/StyleProvider.tsx
+++ b/src/client/views/StyleProvider.tsx
@@ -364,13 +364,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<FieldViewProps &
</Tooltip>
);
};
- const keywords = () => {
- if (doc && doc![DocData].showLabels && (!doc[DocData].data_labels || (doc[DocData].data_labels as List<string>).length === 0)){
- return (<KeywordBox isEditing={true} doc={doc}></KeywordBox>)
- } else if (doc && doc![DocData].data_labels && doc![DocData].showLabels) {
- return (<KeywordBox isEditing={false} doc={doc}></KeywordBox>)
- }
- }
+ const keywords = () => doc ? <KeywordBox Document={doc}/> : null;
return (
<>
{paint()}