File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
components/quasar-jsonform/util Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import debounce from 'lodash/debounce';
1010import merge from 'lodash/merge' ;
1111import get from 'lodash/get' ;
1212import isPlainObject from 'lodash/isPlainObject' ;
13+ import isNull from 'lodash/isNull' ;
1314import { useStyles } from '../styles' ;
1415import { computed , inject , ref , provide } from 'vue' ;
1516import type { ComputedRef } from 'vue' ;
@@ -114,7 +115,7 @@ export const useQuasarControl = <
114115 } ;
115116
116117 // console.log('input.control.value.data', input.control.value.data)
117- if ( isEmpty ( input . control . value ?. data ) ) {
118+ if ( isEmpty ( input . control . value ?. data ) || isNull ( input . control . value ?. data ) ) {
118119 input . handleChange ( input . control . value ?. path , input . control . value ?. schema ?. default || undefined )
119120 // console.log('trigger default', input.control.value.schema.default || null)
120121 }
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ import { useQuasar } from 'quasar'
5151import type { QTableProps } from ' quasar'
5252import type { components , operations } from ' #build/types/service-api'
5353import { useErrorHandling } from ' #imports'
54- import { useIdentityStates ,useIdentityInitStates } from ' ~/composables'
54+ import { useIdentityStates , useIdentityInitStates } from ' ~/composables'
5555import { identity } from ' @vueuse/core'
5656import { useIdentityStateStore } from " ~/stores/identityState"
5757type Identity = components [' schemas' ][' IdentitiesDto' ]
@@ -70,7 +70,7 @@ const $q = useQuasar()
7070const { handleError } = useErrorHandling ()
7171const form = ref <any >(null )
7272const { getStateColor, getStateName } = useIdentityStates ()
73- const { getInitStateColor, getInitStateName,getInitStateIcon } = useIdentityInitStates ()
73+ const { getInitStateColor, getInitStateName, getInitStateIcon } = useIdentityInitStates ()
7474
7575onMounted (() => {
7676 initializePagination (identities .value ?.total )
You can’t perform that action at this time.
0 commit comments