@@ -103,17 +103,20 @@ var renderSelectionHybridCheckbox = function (_React$Component) {
103103 value : function parseOptionsAndSpecials ( props ) {
104104 var exclusives = [ ] ;
105105 var options = [ ] ;
106- props . options . forEach ( function ( option ) {
107- var key = props . getOptKey ( option ) ;
108- var special = props . getOptSpecial ( option ) ;
109- if ( special . includes ( 'exclusive' ) ) {
110- exclusives . push ( key ) ;
111- }
112- options . push ( {
113- key : key ,
114- value : props . getOptVal ( option )
106+
107+ if ( props . options ) {
108+ props . options . forEach ( function ( option ) {
109+ var key = props . getOptKey ( option ) ;
110+ var special = props . getOptSpecial ( option ) ;
111+ if ( special . includes ( 'exclusive' ) ) {
112+ exclusives . push ( key ) ;
113+ }
114+ options . push ( {
115+ key : key ,
116+ value : props . getOptVal ( option )
117+ } ) ;
115118 } ) ;
116- } ) ;
119+ }
117120 return { options : options , exclusives : exclusives } ;
118121 }
119122 } , {
@@ -131,7 +134,8 @@ var renderSelectionHybridCheckbox = function (_React$Component) {
131134 globalError = _props2 . globalError ,
132135 fieldMap = _props2 . fieldMap ,
133136 disabled = _props2 . disabled ,
134- columnCount = _props2 . columnCount ;
137+ columnCount = _props2 . columnCount ,
138+ preview = _props2 . preview ;
135139 var options = this . state . options ;
136140
137141
@@ -152,7 +156,7 @@ var renderSelectionHybridCheckbox = function (_React$Component) {
152156 return _react2 . default . createElement (
153157 'div' ,
154158 {
155- className : ( 0 , _classnames2 . default ) ( className , 'wfui-form-item' , { 'wfui-form-item-error' : globalError } , { 'wfui-form-disabled' : disabled } )
159+ className : ( 0 , _classnames2 . default ) ( className , 'wfui-form-item' , { 'wfui-form-item-error' : globalError } , { 'wfui-form-disabled' : disabled } , { 'wfui-form-preview' : preview } )
156160 } ,
157161 _react2 . default . createElement (
158162 _index . ControlLabel ,
0 commit comments