kgabryje commented on code in PR #27891:
URL: https://github.com/apache/superset/pull/27891#discussion_r1568660582


##########
superset-frontend/src/components/AlteredSliceTag/index.tsx:
##########
@@ -98,48 +94,83 @@ function alterForComparison(value?: string | null | []): 
string | null {
     return null;
   }
   return value;
-}
-
-class AlteredSliceTag extends React.Component<
-  AlteredSliceTagProps,
-  AlteredSliceTagState
-> {
-  constructor(props: AlteredSliceTagProps) {
-    super(props);
-    const diffs = this.getDiffs(props);
-    const controlsMap: ControlMap = getControlsForVizType(
-      props.origFormData.viz_type,
-    ) as ControlMap;
-    const rows = this.getRowsFromDiffs(diffs, controlsMap);
+};
 
-    this.state = { rows, hasDiffs: !isEmpty(diffs), controlsMap };
+export const formatValueHandler = (
+  value: any,

Review Comment:
   Why did we change the type to `any`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to