File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
eda/eda_app/src/app/module/components/eda-panels/eda-blank-panel/panel-utils Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,18 @@ export const PanelInteractionUtils = {
334334 duplicatedColumn . format = contentColumn . hasOwnProperty ( "format" ) ?contentColumn . format :null ; // Agregando el Formato
335335 PanelInteractionUtils . handleAggregationType4DuplicatedColumns ( ebp , duplicatedColumn ) ;
336336 // Moc la columna directament perque es una duplicada.... o no....
337+
338+ // column_type Agregando los old_column_type
339+ duplicatedColumn . aggregation_type . forEach ( ( agg : any ) => {
340+ if ( agg . selected ) {
341+ if ( agg . value === 'count' || agg . value === 'count_distinct' ) {
342+ duplicatedColumn . column_type = 'numeric'
343+ duplicatedColumn . old_column_type = contentColumn . old_column_type ;
344+ return
345+ }
346+ }
347+ } )
348+
337349 ebp . currentQuery . push ( duplicatedColumn ) ;
338350 }
339351 }
You can’t perform that action at this time.
0 commit comments