1
0
Fork 0
mirror of synced 2024-06-30 03:50:37 +12:00

Merge pull request #872 from Budibase/switching-bug

Switching bug
This commit is contained in:
Martin McKeaveney 2020-11-23 16:58:03 +00:00 committed by GitHub
commit d4cc142a1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 9 deletions

View file

@ -31,7 +31,7 @@
<Table {title} {schema} {data} allowEditing={true} {loading}>
<CreateColumnButton />
{#if Object.keys(schema).length > 0}
{#if schema && Object.keys(schema).length > 0}
<CreateRowButton />
<CreateViewButton />
<ExportButton view={tableView} />

View file

@ -79,7 +79,10 @@ exports.fetch = async function(ctx) {
if (apps.length === 0) {
ctx.body = []
} else {
ctx.body = await Promise.all(apps)
const response = await Promise.allSettled(apps)
ctx.body = response
.filter(result => result.status === "fulfilled")
.map(({ value }) => value)
}
}

View file

@ -36,7 +36,7 @@
"gitHead": "284cceb9b703c38566c6e6363c022f79a08d5691",
"dependencies": {
"@budibase/bbui": "^1.50.1",
"@budibase/svelte-ag-grid": "^0.0.13",
"@budibase/svelte-ag-grid": "^0.0.16",
"@fortawesome/fontawesome-free": "^5.14.0",
"@svelteschool/svelte-forms": "^0.7.0",
"apexcharts": "^3.22.1",

View file

@ -140,12 +140,6 @@
}
</script>
<svelte:head>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css" />
</svelte:head>
<div class="container" style="--grid-height: {height}px">
{#if dataLoaded}
{#if canAddDelete}

View file

@ -1,4 +1,5 @@
import "@budibase/bbui/dist/bbui.css"
import "flatpickr/dist/flatpickr.css"
export { default as container } from "./Container.svelte"
export { default as text } from "./Text.svelte"