map fulfilled promises
This commit is contained in:
parent
bfab74d11f
commit
cee26fb0b6
|
@ -80,7 +80,9 @@ exports.fetch = async function(ctx) {
|
|||
ctx.body = []
|
||||
} else {
|
||||
const response = await Promise.allSettled(apps)
|
||||
ctx.body = response.filter(result => result.status === "fulfilled")
|
||||
ctx.body = response
|
||||
.filter(result => result.status === "fulfilled")
|
||||
.map(({ value }) => value)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -147,7 +147,9 @@
|
|||
{#if selectedRows.length > 0}
|
||||
<DeleteButton text small on:click={modal.show()}>
|
||||
<Icon name="addrow" />
|
||||
Delete {selectedRows.length} row(s)
|
||||
Delete
|
||||
{selectedRows.length}
|
||||
row(s)
|
||||
</DeleteButton>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue