Add more explicit params to arrow functions

This commit is contained in:
Andrew Kingston 2020-09-14 15:46:21 +01:00
parent 09565e41d0
commit 8959e1ddf0
2 changed files with 4 additions and 2 deletions

View File

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

View File

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