MCPcopy Create free account
hub / github.com/formschema/native / setFormValue

Function setFormValue

lib/parser.js:17–21  ·  view source on GitHub ↗
(vm, field)

Source from the content-addressed store, hash-verified

15}
16
17const setFormValue = (vm, field) => {
18 if (vm.value && !vm.value[field.name]) {
19 vm.$set(vm.value, field.name, field.value)
20 }
21}
22
23export const loadFields = (vm, schema) => {
24 if (!schema || schema.visible === false) {

Callers 3

parseBooleanFunction · 0.85
parseStringFunction · 0.85
parseArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected