You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "EnxDev (via GitHub)" <gi...@apache.org> on 2026/05/05 18:25:11 UTC
Re: [PR] chore(lint): convert dashboard components to function components [superset]
EnxDev commented on code in PR #39460:
URL: https://github.com/apache/superset/pull/39460#discussion_r3190624081
##########
superset-frontend/src/dashboard/components/gridComponents/Chart/Chart.tsx:
##########
@@ -760,11 +750,11 @@ const Chart = (props: ChartProps) => {
},
slice.viz_type,
)}
- queriesResponse={chart.queriesResponse ?? undefined}
+ queriesResponse={chart.queriesResponse ?? null}
timeout={timeout}
triggerQuery={chart.triggerQuery}
vizType={slice.viz_type}
- setControlValue={props.setControlValue}
+ setControlValue={props.setControlValue ?? (() => {})}
Review Comment:
I'm wondering if could be better to add it inside a `const` to avoid to re-create it in every render
##########
superset-frontend/src/dashboard/components/dnd/DragDroppable.tsx:
##########
@@ -92,15 +91,6 @@ const DragDroppableStyles = styled.div`
&.dragdroppable-row {
width: 100%;
}
- /* workaround to avoid a bug in react-dnd where the drag
- preview expands outside of the bounds of the drag source card, see:
- https://github.com/react-dnd/react-dnd/issues/832 */
- &.dragdroppable-column {
- /* for chrome */
- transform: translate3d(0, 0, 0);
- /* for safari */
- backface-visibility: hidden;
- }
Review Comment:
I'm wondering if do we still need this?
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org