mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-02-06 09:55:50 +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 {
|
try {
|
||||||
const reports = await reportsReadTxPromise
|
const reports = await reportsReadTxPromise
|
||||||
return reports
|
return reports || []
|
||||||
} finally {
|
} finally {
|
||||||
session.close()
|
session.close()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user