fix: lint
This commit is contained in:
@@ -50,7 +50,6 @@
|
||||
"lodash": "^4.17.21",
|
||||
"loglevel": "^1.8.0",
|
||||
"loglevel-plugin-remote": "^0.6.8",
|
||||
"maxun-core": "^0.0.15",
|
||||
"minio": "^8.0.1",
|
||||
"moment-timezone": "^0.5.45",
|
||||
"node-cron": "^3.0.3",
|
||||
|
||||
@@ -62,8 +62,8 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
|
||||
if (!row.serializableOutput) return;
|
||||
|
||||
if (!row.serializableOutput.scrapeSchema &&
|
||||
!row.serializableOutput.scrapeList &&
|
||||
Object.keys(row.serializableOutput).length > 0) {
|
||||
!row.serializableOutput.scrapeList &&
|
||||
Object.keys(row.serializableOutput).length > 0) {
|
||||
|
||||
setIsLegacyData(true);
|
||||
processLegacyData(row.serializableOutput);
|
||||
@@ -308,7 +308,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
|
||||
startIcon={<DownloadIcon />}
|
||||
onClick={() => {
|
||||
if (isPaginatedList) {
|
||||
downloadCSV(currentData, currentColumns, `list_table_${currentListIndex+1}.csv`);
|
||||
downloadCSV(currentData, currentColumns, `list_table_${currentListIndex + 1}.csv`);
|
||||
} else {
|
||||
downloadCSV(data, columns, csvFilename);
|
||||
}
|
||||
@@ -321,7 +321,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
|
||||
startIcon={<DataObjectIcon />}
|
||||
onClick={() => {
|
||||
if (isPaginatedList) {
|
||||
downloadJSON(currentData, `list_table_${currentListIndex+1}.json`);
|
||||
downloadJSON(currentData, `list_table_${currentListIndex + 1}.json`);
|
||||
} else {
|
||||
downloadJSON(data, jsonFilename);
|
||||
}
|
||||
@@ -430,7 +430,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
|
||||
size="small"
|
||||
onClick={() => {
|
||||
if (isPaginatedList) {
|
||||
downloadCSV(currentData, currentColumns, `list_table_${currentListIndex+1}.csv`);
|
||||
downloadCSV(currentData, currentColumns, `list_table_${currentListIndex + 1}.csv`);
|
||||
} else {
|
||||
downloadCSV(data, columns, csvFilename);
|
||||
}
|
||||
@@ -443,7 +443,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
|
||||
size="small"
|
||||
onClick={() => {
|
||||
if (isPaginatedList) {
|
||||
downloadJSON(currentData, `list_table_${currentListIndex+1}.json`);
|
||||
downloadJSON(currentData, `list_table_${currentListIndex + 1}.json`);
|
||||
} else {
|
||||
downloadJSON(data, jsonFilename);
|
||||
}
|
||||
@@ -588,9 +588,9 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
|
||||
if (index >= 0 && index < listData.length) {
|
||||
data = listData[index];
|
||||
columns = listColumns[index];
|
||||
title = `${t('run_content.captured_data.list_title')} - Table ${index+1}`;
|
||||
csvFilename = `list_table_${index+1}.csv`;
|
||||
jsonFilename = `list_table_${index+1}.json`;
|
||||
title = `${t('run_content.captured_data.list_title')} - Table ${index + 1}`;
|
||||
csvFilename = `list_table_${index + 1}.csv`;
|
||||
jsonFilename = `list_table_${index + 1}.json`;
|
||||
}
|
||||
} else {
|
||||
switch (dataTypeWithIndex) {
|
||||
@@ -967,7 +967,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
|
||||
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
||||
<ImageIcon sx={{ color: '#FF00C3' }} />
|
||||
<Typography variant='h6' sx={{ ml: 2 }}>
|
||||
Screenshot {index+1}
|
||||
Screenshot {index + 1}
|
||||
</Typography>
|
||||
</Box>
|
||||
</AccordionSummary>
|
||||
|
||||
Reference in New Issue
Block a user