try to fix result if promise resolves to null or invalid

This commit is contained in:
Ulf Gebhardt 2023-06-02 11:42:15 +02:00
parent d08a78b685
commit 733a88bb26
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -106,7 +106,7 @@ export default {
})
try {
const reports = await reportsReadTxPromise
return reports
return reports || []
} finally {
session.close()
}