mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
assign instead of merge (#7632)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -65,7 +65,7 @@ import { useI18n } from 'vue-i18n';
|
||||
import { defineComponent, PropType, computed, ref, provide } from 'vue';
|
||||
import { useFieldsStore } from '@/stores/';
|
||||
import { Field, FieldRaw, ValidationError } from '@directus/shared/types';
|
||||
import { cloneDeep, isNil, merge, omit, pick } from 'lodash';
|
||||
import { assign, cloneDeep, isNil, merge, omit, pick } from 'lodash';
|
||||
import useFormFields from '@/composables/use-form-fields';
|
||||
import { useElementSize } from '@/composables/use-element-size';
|
||||
import FormField from './form-field.vue';
|
||||
@@ -306,7 +306,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function apply(updates: { [field: string]: any }) {
|
||||
emit('update:modelValue', pick(merge({}, props.modelValue, updates), Object.keys(updates)));
|
||||
emit('update:modelValue', pick(assign({}, props.modelValue, updates), Object.keys(updates)));
|
||||
}
|
||||
|
||||
function unsetValue(field: Field) {
|
||||
|
||||
Reference in New Issue
Block a user