feat: move duplicate above delete

This commit is contained in:
karishmas6
2024-11-30 20:26:09 +05:30
parent 58f6aa46e7
commit 63caff8065

View File

@@ -246,6 +246,9 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl
<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 || [])}
handleDuplicate={() => {
handleDuplicateRobot(row.id, row.name, row.params || []);
}}
handleDelete={() => { handleDelete={() => {
checkRunsForRecording(row.id).then((result: boolean) => { checkRunsForRecording(row.id).then((result: boolean) => {
@@ -262,9 +265,6 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl
} }
}) })
}} }}
handleDuplicate={() => {
handleDuplicateRobot(row.id, row.name, row.params || []);
}}
/> />
</TableCell> </TableCell>
); );