mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
try to fix result if promise resolves to null or invalid
This commit is contained in:
parent
d08a78b685
commit
733a88bb26
@ -106,7 +106,7 @@ export default {
|
||||
})
|
||||
try {
|
||||
const reports = await reportsReadTxPromise
|
||||
return reports
|
||||
return reports || []
|
||||
} finally {
|
||||
session.close()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user