Remove redundant fieldTypes

This commit is contained in:
Rory Powell 2021-10-18 12:02:08 +01:00
parent 5242265f0e
commit bd9dbc6644
4 changed files with 1 additions and 6 deletions

View File

@ -75,7 +75,6 @@
{#if canRenderControl(setting)}
<PropertyControl
type={setting.type}
fieldTypes={setting.fieldTypes}
control={getComponentForSettingType(setting.type)}
label={setting.label}
key={setting.key}

View File

@ -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 ?? {})

View File

@ -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"}

View File

@ -1950,7 +1950,6 @@
"settings": [
{
"type": "field/options",
"fieldTypes": ["field/options", "field/string"],
"label": "Field",
"key": "field"
},