diff options
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r-- | src/client/views/StyleProvider.tsx | 8 |
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()} |