File tree Expand file tree Collapse file tree
packages/configurator/src/object-depth-configurator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,21 +26,20 @@ export default {
2626 props: {
2727 meta: {
2828 type: Object ,
29- default : () => {}
29+ default : () => ({})
3030 }
3131 },
3232 emits: [' update:modelValue' ],
3333 setup (props , { emit }) {
3434 const properties = computed (() => {
35- const result = props .meta ? .properties ? .[0 ]? .content || []
35+ const result = [ ... ( props .meta ? .properties ? .[0 ]? .content || []) ]
3636 const propsModelValue = props .meta .widget .props ? .modelValue
3737
3838 if (result .length && propsModelValue) {
3939 result .forEach ((item ) => {
4040 const modelValue = propsModelValue
4141 const model_value_property = modelValue[item .property ]
42- item .widget .props .modelValue =
43- typeof model_value_property === ' boolean' ? model_value_property : model_value_property || null
42+ item .widget .props .modelValue = typeof model_value_property === ' undefined' ? null : model_value_property
4443 })
4544 }
4645 return result
You can’t perform that action at this time.
0 commit comments