Add more explicit params to arrow functions
This commit is contained in:
parent
09565e41d0
commit
8959e1ddf0
|
@ -5,7 +5,7 @@
|
||||||
$: modelId = value ? value._id : ""
|
$: modelId = value ? value._id : ""
|
||||||
|
|
||||||
function onChange(e) {
|
function onChange(e) {
|
||||||
value = $backendUiStore.models.find(x => x._id === e.target.value)
|
value = $backendUiStore.models.find(model => model._id === e.target.value)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
$: schemaFields = Object.keys(value && value.model ? value.model.schema : {})
|
$: schemaFields = Object.keys(value && value.model ? value.model.schema : {})
|
||||||
|
|
||||||
function onChangeModel(e) {
|
function onChangeModel(e) {
|
||||||
value.model = $backendUiStore.models.find(x => x._id === e.target.value)
|
value.model = $backendUiStore.models.find(
|
||||||
|
model => model._id === e.target.value
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function setParsedValue(evt, field) {
|
function setParsedValue(evt, field) {
|
||||||
|
|
Loading…
Reference in New Issue