Skip to content

Commit e30c0fa

Browse files
committed
Minor refactor
1 parent ea9c57e commit e30c0fa

File tree

1 file changed

+6
-8
lines changed
  • chartlets.js/packages/lib/src/plugins/mui

1 file changed

+6
-8
lines changed

chartlets.js/packages/lib/src/plugins/mui/Table.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,12 @@ export const Table = ({
8484
_details: GridCallbackDetails,
8585
) => {
8686
if (id) {
87-
if (onChange) {
88-
onChange({
89-
componentType: type,
90-
id: id,
91-
property: "value",
92-
value: params.row,
93-
});
94-
}
87+
onChange({
88+
componentType: type,
89+
id: id,
90+
property: "value",
91+
value: params.row,
92+
});
9593
}
9694
};
9795

0 commit comments

Comments
 (0)