@@ -21,6 +21,7 @@ export default class RowExpandFormulaFormatter extends React.Component {
2121 column : PropTypes . object ,
2222 containerClassName : PropTypes . string ,
2323 collaborators : PropTypes . array ,
24+ departments : PropTypes . array ,
2425 } ;
2526
2627 getGridCellClassName = ( resultType ) => {
@@ -80,13 +81,13 @@ export default class RowExpandFormulaFormatter extends React.Component {
8081 } ;
8182
8283 renderOtherColumnFormatter = ( ) => {
83- const { value, column, collaborators } = this . props ;
84+ const { value, column, collaborators, departments } = this . props ;
8485 const { array_type, array_data } = column . data ;
8586 if ( ! array_type || array_type === CellType . LINK ) {
8687 return null ;
8788 }
8889 const Formatter = BaseFormatterConfig [ array_type ] ;
89- let formatterProps = this . getFormatterProps ( array_type , array_data , collaborators ) ;
90+ let formatterProps = this . getFormatterProps ( array_type , array_data , collaborators , departments ) ;
9091
9192 if ( isArrayFormatColumn ( array_type ) ) {
9293 formatterProps . value = value ;
@@ -146,14 +147,17 @@ export default class RowExpandFormulaFormatter extends React.Component {
146147 }
147148 }
148149
149- getFormatterProps = ( array_type , array_data , collaborators ) => {
150+ getFormatterProps = ( array_type , array_data , collaborators , departments ) => {
150151 switch ( array_type ) {
151152 case CellType . DURATION : {
152153 const { duration_format } = array_data ;
153154 return { format : duration_format } ;
154155 }
155156 case CellType . NUMBER :
156157 case CellType . RATE :
158+ case CellType . DEPARTMENT_SINGLE_SELECT : {
159+ return { column : { data : array_data } , readOnly : true , departments } ;
160+ }
157161 case CellType . GEOLOCATION : {
158162 return { data : array_data } ;
159163 }
0 commit comments