mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
small fixes
This commit is contained in:
@@ -40,6 +40,15 @@ export default class SqlResultWidget extends NoteContextAwareWidget {
|
||||
this.$resultContainer.empty();
|
||||
|
||||
for (const rows of results) {
|
||||
if (typeof rows === 'object' && !Array.isArray(rows)) {
|
||||
// inserts, updates
|
||||
this.$resultContainer.empty().show().append(
|
||||
$("<pre>").text(JSON.stringify(rows, null, '\t'))
|
||||
);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!rows.length) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user