diff --git a/components/color-picker/components/PanelPresets.tsx b/components/color-picker/components/PanelPresets.tsx index 344e8b3d73..b978df408a 100644 --- a/components/color-picker/components/PanelPresets.tsx +++ b/components/color-picker/components/PanelPresets.tsx @@ -12,11 +12,9 @@ export interface PanelPresetsProps extends Pick { const { prefixCls, value, presets, onChange } = useContext(PanelPresetsContext); - return ( - Array.isArray(presets) && ( - - ) - ); + return Array.isArray(presets) ? ( + + ) : null; }; export default PanelPresets;