Skeleton Fixes (#8845)
This commit is contained in:
parent
8fab962e38
commit
66a00a677a
|
@ -479,6 +479,7 @@
|
||||||
definition.name !== "Screenslot" &&
|
definition.name !== "Screenslot" &&
|
||||||
children.length === 0 &&
|
children.length === 0 &&
|
||||||
!instance._blockElementHasChildren &&
|
!instance._blockElementHasChildren &&
|
||||||
|
!definition.block &&
|
||||||
definition.skeleton !== false
|
definition.skeleton !== false
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
let dataProviderId
|
let dataProviderId
|
||||||
let repeaterId
|
let repeaterId
|
||||||
let schema
|
let schema
|
||||||
let schemaLoaded = false
|
|
||||||
|
|
||||||
$: fetchSchema(dataSource)
|
$: fetchSchema(dataSource)
|
||||||
$: enrichedSearchColumns = enrichSearchColumns(searchColumns, schema)
|
$: enrichedSearchColumns = enrichSearchColumns(searchColumns, schema)
|
||||||
|
@ -75,11 +74,9 @@
|
||||||
enrichRelationships: true,
|
enrichRelationships: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
schemaLoaded = true
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if schemaLoaded}
|
|
||||||
<Block>
|
<Block>
|
||||||
<BlockComponent
|
<BlockComponent
|
||||||
type="form"
|
type="form"
|
||||||
|
@ -209,4 +206,3 @@
|
||||||
</BlockComponent>
|
</BlockComponent>
|
||||||
</BlockComponent>
|
</BlockComponent>
|
||||||
</Block>
|
</Block>
|
||||||
{/if}
|
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
let newRowSidePanelId
|
let newRowSidePanelId
|
||||||
let schema
|
let schema
|
||||||
let primaryDisplay
|
let primaryDisplay
|
||||||
let schemaLoaded = false
|
|
||||||
|
|
||||||
$: fetchSchema(dataSource)
|
$: fetchSchema(dataSource)
|
||||||
$: enrichedSearchColumns = enrichSearchColumns(searchColumns, schema)
|
$: enrichedSearchColumns = enrichSearchColumns(searchColumns, schema)
|
||||||
|
@ -89,7 +88,6 @@
|
||||||
enrichRelationships: true,
|
enrichRelationships: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
schemaLoaded = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const getNormalFields = schema => {
|
const getNormalFields = schema => {
|
||||||
|
@ -113,7 +111,6 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if schemaLoaded}
|
|
||||||
<Block>
|
<Block>
|
||||||
<BlockComponent
|
<BlockComponent
|
||||||
type="form"
|
type="form"
|
||||||
|
@ -271,4 +268,3 @@
|
||||||
{/if}
|
{/if}
|
||||||
</BlockComponent>
|
</BlockComponent>
|
||||||
</Block>
|
</Block>
|
||||||
{/if}
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
const context = getContext("context")
|
const context = getContext("context")
|
||||||
const { API, fetchDatasourceSchema } = getContext("sdk")
|
const { API, fetchDatasourceSchema } = getContext("sdk")
|
||||||
|
|
||||||
let loaded = false
|
|
||||||
let schema
|
let schema
|
||||||
let table
|
let table
|
||||||
|
|
||||||
|
@ -49,9 +48,6 @@
|
||||||
// Fetches the form schema from this form's dataSource
|
// Fetches the form schema from this form's dataSource
|
||||||
const fetchSchema = async dataSource => {
|
const fetchSchema = async dataSource => {
|
||||||
schema = (await fetchDatasourceSchema(dataSource)) || {}
|
schema = (await fetchDatasourceSchema(dataSource)) || {}
|
||||||
if (!loaded) {
|
|
||||||
loaded = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchTable = async dataSource => {
|
const fetchTable = async dataSource => {
|
||||||
|
@ -70,7 +66,6 @@
|
||||||
)
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if loaded}
|
|
||||||
{#key resetKey}
|
{#key resetKey}
|
||||||
<InnerForm
|
<InnerForm
|
||||||
{dataSource}
|
{dataSource}
|
||||||
|
@ -87,4 +82,3 @@
|
||||||
<slot />
|
<slot />
|
||||||
</InnerForm>
|
</InnerForm>
|
||||||
{/key}
|
{/key}
|
||||||
{/if}
|
|
||||||
|
|
Loading…
Reference in New Issue