Fix flashes
This commit is contained in:
parent
cdead18402
commit
a63d193a3c
|
@ -116,6 +116,7 @@
|
||||||
|
|
||||||
let relationshipPanelColumns = []
|
let relationshipPanelColumns = []
|
||||||
$: {
|
$: {
|
||||||
|
relationshipPanelColumns = []
|
||||||
if (relationshipField) {
|
if (relationshipField) {
|
||||||
cache.actions.getTable(relationshipField.tableId).then(table => {
|
cache.actions.getTable(relationshipField.tableId).then(table => {
|
||||||
relationshipPanelColumns = Object.entries(
|
relationshipPanelColumns = Object.entries(
|
||||||
|
@ -141,8 +142,6 @@
|
||||||
: 1
|
: 1
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
relationshipPanelColumns = []
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,7 +217,7 @@
|
||||||
{#if allowRelationshipSchemas}
|
{#if allowRelationshipSchemas}
|
||||||
<Popover
|
<Popover
|
||||||
on:close={() => (relationshipFieldName = null)}
|
on:close={() => (relationshipFieldName = null)}
|
||||||
open={!!relationshipField}
|
open={!!relationshipPanelColumns}
|
||||||
anchor={relationshipPanelAnchor}
|
anchor={relationshipPanelAnchor}
|
||||||
align="right-outside"
|
align="right-outside"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue