mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-03-01 12:44:37 +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