diff --git a/src/components/molecules/RecordingsTable.tsx b/src/components/molecules/RecordingsTable.tsx index 66888c96..651d3677 100644 --- a/src/components/molecules/RecordingsTable.tsx +++ b/src/components/molecules/RecordingsTable.tsx @@ -151,9 +151,6 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl row.name.toLowerCase().includes(searchTerm.toLowerCase()) ); - - - return ( @@ -249,6 +246,9 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl handleEditRobot(row.id, row.name, row.params || [])} + handleDuplicate={() => { + handleDuplicateRobot(row.id, row.name, row.params || []); + }} handleDelete={() => { checkRunsForRecording(row.id).then((result: boolean) => { @@ -265,9 +265,6 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl } }) }} - handleDuplicate={() => { - handleDuplicateRobot(row.id, row.name, row.params || []); - }} /> ); @@ -420,18 +417,18 @@ const OptionsButton = ({ handleEdit, handleDelete, handleDuplicate }: OptionsBut Edit - { handleDelete(); handleClose(); }}> - - - - Delete - { handleDuplicate(); handleClose(); }}> Duplicate + { handleDelete(); handleClose(); }}> + + + + Delete + );