Skip to content

Commit 741c547

Browse files
committed
Fix broken row reorder callback
1 parent a9a386b commit 741c547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ const AssessmentConfigPanel: WithImperativeApi<
283283
// Updates the data passed into ag-grid
284284
// (this is necessary to update the rowIndex in our custom cellRenderer)
285285
const onRowDragLeaveOrEnd = (event: RowDragEvent) => {
286-
// gridApi.current?.setRowData(assessmentConfig.current);
286+
gridApi.current?.setGridOption('rowData', configs);
287287
};
288288

289289
// Updates our local React state whenever there are changes

0 commit comments

Comments
 (0)