diff --git a/src/components/robot/RecordingsTable.tsx b/src/components/robot/RecordingsTable.tsx
index 14c51628..87327b7e 100644
--- a/src/components/robot/RecordingsTable.tsx
+++ b/src/components/robot/RecordingsTable.tsx
@@ -200,107 +200,107 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl
- {rows.length === 0 ? (
-
-
-
- ) : (
-
-
-
-
- {columns.map((column) => (
-
- {column.label}
-
- ))}
-
-
-
- {filteredRows.length !== 0 ? filteredRows
- .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
- .map((row) => {
- return (
-
- {columns.map((column) => {
- // @ts-ignore
- const value: any = row[column.id];
- if (value !== undefined) {
- return (
-
- {value}
-
- );
- } else {
- switch (column.id) {
- case 'interpret':
- return (
-
- handleRunRecording(row.id, row.name, row.params || [])} />
-
- );
- case 'schedule':
- return (
-
- handleScheduleRecording(row.id, row.name, row.params || [])} />
-
- );
- case 'integrate':
- return (
-
- handleIntegrateRecording(row.id, row.name, row.params || [])} />
-
- );
- case 'options':
- return (
-
- handleEditRobot(row.id, row.name, row.params || [])}
- handleDuplicate={() => {
- handleDuplicateRobot(row.id, row.name, row.params || []);
- }}
- handleDelete={() => {
+ {rows.length === 0 ? (
+
+
+
+ ) : (
+
+
+
+
+ {columns.map((column) => (
+
+ {column.label}
+
+ ))}
+
+
+
+ {filteredRows.length !== 0 ? filteredRows
+ .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
+ .map((row) => {
+ return (
+
+ {columns.map((column) => {
+ // @ts-ignore
+ const value: any = row[column.id];
+ if (value !== undefined) {
+ return (
+
+ {value}
+
+ );
+ } else {
+ switch (column.id) {
+ case 'interpret':
+ return (
+
+ handleRunRecording(row.id, row.name, row.params || [])} />
+
+ );
+ case 'schedule':
+ return (
+
+ handleScheduleRecording(row.id, row.name, row.params || [])} />
+
+ );
+ case 'integrate':
+ return (
+
+ handleIntegrateRecording(row.id, row.name, row.params || [])} />
+
+ );
+ case 'options':
+ return (
+
+ handleEditRobot(row.id, row.name, row.params || [])}
+ handleDuplicate={() => {
+ handleDuplicateRobot(row.id, row.name, row.params || []);
+ }}
+ handleDelete={() => {
- checkRunsForRecording(row.id).then((result: boolean) => {
- if (result) {
- notify('warning', t('recordingtable.notifications.delete_warning'));
- }
- })
+ checkRunsForRecording(row.id).then((result: boolean) => {
+ if (result) {
+ notify('warning', t('recordingtable.notifications.delete_warning'));
+ }
+ })
- deleteRecordingFromStorage(row.id).then((result: boolean) => {
- if (result) {
- setRows([]);
- notify('success', t('recordingtable.notifications.delete_success'));
- fetchRecordings();
- }
- })
- }}
- />
-
- );
- case 'settings':
- return (
-
- handleSettingsRecording(row.id, row.name, row.params || [])} />
-
- );
- default:
- return null;
+ deleteRecordingFromStorage(row.id).then((result: boolean) => {
+ if (result) {
+ setRows([]);
+ notify('success', t('recordingtable.notifications.delete_success'));
+ fetchRecordings();
+ }
+ })
+ }}
+ />
+
+ );
+ case 'settings':
+ return (
+
+ handleSettingsRecording(row.id, row.name, row.params || [])} />
+
+ );
+ default:
+ return null;
+ }
}
- }
- })}
-
- );
- })
- : null}
-
-
-
- )}
+ })}
+
+ );
+ })
+ : null}
+
+
+
+ )}