mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
fix display pending promise
This commit is contained in:
@@ -35,6 +35,9 @@ export const displayed_entries = object => {
|
|||||||
} else if((object[Symbol.toStringTag]) == 'Module') {
|
} else if((object[Symbol.toStringTag]) == 'Module') {
|
||||||
return Object.entries(object)
|
return Object.entries(object)
|
||||||
} else if(isPromise(object)) {
|
} else if(isPromise(object)) {
|
||||||
|
if(object.status == null) {
|
||||||
|
return []
|
||||||
|
}
|
||||||
return displayed_entries(
|
return displayed_entries(
|
||||||
object.status.ok ? object.status.value : object.status.error
|
object.status.ok ? object.status.value : object.status.error
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user