Skip to content

Commit af2346e

Browse files
committed
refactor: getValueByRowData
1 parent 0935671 commit af2346e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/app/pages/DashBoardPage/components/WidgetProvider/WidgetMethodProvider.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,12 @@ export const WidgetMethodProvider: FC<{ widgetId: string }> = ({
278278
renderMode,
279279
],
280280
);
281+
281282
const getValueByRowData = (
282283
data: ChartsEventData | undefined,
283284
fieldName: string,
284285
) => {
285-
let toCaseField = fieldName.toUpperCase();
286+
let toCaseField = fieldName;
286287
return data?.rowData[toCaseField];
287288
};
288289
const toLinkingWidgets = useCallback(

frontend/src/app/pages/DashBoardPage/pages/BoardEditor/FreeEditor/FreeBoardEditor.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ export const WidgetOfFreeEdit: React.FC<{}> = () => {
150150
axis={'both'}
151151
width={curW}
152152
height={curH}
153-
scale={scale[0]}
154153
onResize={resize}
155154
onResizeStop={resizeStop}
156155
draggableOpts={{ grid: [1, 1], scale: scale[0] }}

0 commit comments

Comments
 (0)