1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Remove redundant fieldTypes

This commit is contained in:
Rory Powell 2021-10-18 12:02:08 +01:00
parent f2b4ba2fb2
commit be41a855d1
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"
},