Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(ui): prevent conditional formatting ui leaked render (#8124)

Scoolnikf40d52f55716
diff --git a/packages/sheets-conditional-formatting-ui/src/views/panel/rule-edit/HighlightCell.tsx b/packages/sheets-conditional-formatting-ui/src/views/panel/rule-edit/HighlightCell.tsx
index 581f6efff6..54e80110fe 100644
--- a/packages/sheets-conditional-formatting-ui/src/views/panel/rule-edit/HighlightCell.tsx
+++ b/packages/sheets-conditional-formatting-ui/src/views/panel/rule-edit/HighlightCell.tsx
@@ -421,7 +421,7 @@ export const HighlightCellStyleEditor = (props: IStyleEditorProps<any, IEditable
value={subType}
options={typeOptions}
/>
- {operatorOptions?.length && (
+ {!!operatorOptions?.length && (
<SelectComponent
className="univer-mt-3 univer-w-full"
onChange={onOperatorChange}