mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
fix no results were shown when previewing all results while importing transactions with user custom script
This commit is contained in:
+6
-2
@@ -140,8 +140,12 @@ const displayPreviewResult = computed<string>(() => {
|
|||||||
} else if (executionError.value) {
|
} else if (executionError.value) {
|
||||||
return executionError.value;
|
return executionError.value;
|
||||||
} else if (previewResult.value) {
|
} else if (previewResult.value) {
|
||||||
const rows = previewResult.value.slice(0, previewCount.value);
|
if (previewCount.value > 0) {
|
||||||
return JSON.stringify(rows, null, 2);
|
const rows = previewResult.value.slice(0, previewCount.value);
|
||||||
|
return JSON.stringify(rows, null, 2);
|
||||||
|
} else {
|
||||||
|
return JSON.stringify(previewResult.value, null, 2);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return tt('No Preview Result');
|
return tt('No Preview Result');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user