chore: lint

This commit is contained in:
amhsirak
2024-11-22 21:56:02 +05:30
parent 96d5feb4df
commit fa95aacec3

View File

@@ -254,33 +254,33 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl
<IntegrateButton handleIntegrate={() => handleIntegrateRecording(row.id, row.name, row.params || [])} /> <IntegrateButton handleIntegrate={() => handleIntegrateRecording(row.id, row.name, row.params || [])} />
</TableCell> </TableCell>
); );
case 'options': case 'options':
return ( return (
<TableCell key={column.id} align={column.align}> <TableCell key={column.id} align={column.align}>
<OptionsButton <OptionsButton
handleEdit={() => handleEditRobot(row.id, row.name, row.params || [])} handleEdit={() => handleEditRobot(row.id, row.name, row.params || [])}
handleDelete={() => { handleDelete={() => {
checkRunsForRecording(row.id).then((result: boolean) => { checkRunsForRecording(row.id).then((result: boolean) => {
if (result) { if (result) {
notify('warning', 'Cannot delete recording as it has active runs'); notify('warning', 'Cannot delete recording as it has active runs');
} }
}) })
deleteRecordingFromStorage(row.id).then((result: boolean) => { deleteRecordingFromStorage(row.id).then((result: boolean) => {
if (result) { if (result) {
setRows([]); setRows([]);
notify('success', 'Recording deleted successfully'); notify('success', 'Recording deleted successfully');
fetchRecordings(); fetchRecordings();
} }
}) })
}} }}
handleDuplicate={() => { handleDuplicate={() => {
handleDuplicateRobot(row.id, row.name, row.params || []); handleDuplicateRobot(row.id, row.name, row.params || []);
}} }}
/> />
</TableCell> </TableCell>
); );
case 'settings': case 'settings':
return ( return (
<TableCell key={column.id} align={column.align}> <TableCell key={column.id} align={column.align}>