feat: !parse recording
This commit is contained in:
@@ -97,13 +97,12 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl
|
|||||||
const recordings = await getStoredRecordings();
|
const recordings = await getStoredRecordings();
|
||||||
if (recordings) {
|
if (recordings) {
|
||||||
const parsedRows: Data[] = [];
|
const parsedRows: Data[] = [];
|
||||||
recordings.map((recording, index) => {
|
recordings.map((recording: any, index: number) => {
|
||||||
const parsedRecording = JSON.parse(recording);
|
if (recording && recording.recording_meta) {
|
||||||
if (parsedRecording.recording_meta) {
|
|
||||||
parsedRows.push({
|
parsedRows.push({
|
||||||
id: index,
|
id: index,
|
||||||
...parsedRecording.recording_meta,
|
...recording.recording_meta,
|
||||||
content: parsedRecording.recording
|
content: recording.recording
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user