Remove redundant fieldTypes
This commit is contained in:
parent
5242265f0e
commit
bd9dbc6644
|
@ -75,7 +75,6 @@
|
|||
{#if canRenderControl(setting)}
|
||||
<PropertyControl
|
||||
type={setting.type}
|
||||
fieldTypes={setting.fieldTypes}
|
||||
control={getComponentForSettingType(setting.type)}
|
||||
label={setting.label}
|
||||
key={setting.key}
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
export let componentInstance
|
||||
export let value
|
||||
export let type
|
||||
export let fieldTypes
|
||||
|
||||
$: form = findClosestMatchingComponent(
|
||||
$currentAsset.props,
|
||||
|
@ -19,7 +18,7 @@
|
|||
)
|
||||
$: datasource = getDatasourceForProvider($currentAsset, form)
|
||||
$: schema = getSchemaForDatasource($currentAsset, datasource, true).schema
|
||||
$: options = getOptions(schema, type, fieldTypes)
|
||||
$: options = getOptions(schema, type)
|
||||
|
||||
const getOptions = (schema, type) => {
|
||||
let entries = Object.entries(schema ?? {})
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
export let control = null
|
||||
export let key = ""
|
||||
export let type = ""
|
||||
export let fieldTypes = []
|
||||
export let value = null
|
||||
export let props = {}
|
||||
export let onChange = () => {}
|
||||
|
@ -83,7 +82,6 @@
|
|||
name={key}
|
||||
text={label}
|
||||
{type}
|
||||
{fieldTypes}
|
||||
{...props}
|
||||
/>
|
||||
{#if bindable && !key.startsWith("_") && type === "text"}
|
||||
|
|
|
@ -1950,7 +1950,6 @@
|
|||
"settings": [
|
||||
{
|
||||
"type": "field/options",
|
||||
"fieldTypes": ["field/options", "field/string"],
|
||||
"label": "Field",
|
||||
"key": "field"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue