Skip to content

Commit a9a386b

Browse files
committed
Revert "Remove unused handler"
This reverts commit 5d14144.
1 parent f209e1f commit a9a386b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pages/academy/adminPanel/subcomponents/assessmentConfigPanel/AssessmentConfigPanel.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ const AssessmentConfigPanel: WithImperativeApi<
280280
[configs]
281281
);
282282

283+
// Updates the data passed into ag-grid
284+
// (this is necessary to update the rowIndex in our custom cellRenderer)
285+
const onRowDragLeaveOrEnd = (event: RowDragEvent) => {
286+
// gridApi.current?.setRowData(assessmentConfig.current);
287+
};
288+
283289
// Updates our local React state whenever there are changes
284290
// to the Assessment Type column.
285291
const onCellValueChanged = (event: CellValueChangedEvent) => {
@@ -311,6 +317,8 @@ const AssessmentConfigPanel: WithImperativeApi<
311317
suppressMovableColumns={true}
312318
suppressPaginationPanel={true}
313319
onRowDragMove={onRowDragMove}
320+
onRowDragLeave={onRowDragLeaveOrEnd}
321+
onRowDragEnd={onRowDragLeaveOrEnd}
314322
onCellValueChanged={onCellValueChanged}
315323
/>
316324
<div className="footer-text">

0 commit comments

Comments
 (0)