File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
ui/src/components/FormModifications Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,11 @@ import {
1616 thirdModificationField ,
1717} from './TestConfig' ;
1818import EntityModal , { EntityModalProps } from '../EntityModal/EntityModal' ;
19- import { EntitiesAllowingModifications } from '../../types/components/BaseFormTypes' ;
19+ import { BaseFormState , EntitiesAllowingModifications } from '../../types/components/BaseFormTypes' ;
2020import { invariant } from '../../util/invariant' ;
2121import { StringOrTextWithLinks } from '../../types/globalConfig/baseSchemas' ;
2222import { getModificationForEntity } from './FormModifications' ;
23+ import { AcceptableFormValueOrNullish } from "@/types/components/shareableTypes.ts" ;
2324
2425const handleRequestClose = vi . fn ( ) ;
2526const setUpConfigWithDefaultValue = ( ) => {
@@ -290,9 +291,14 @@ it('verify no modifications', async () => {
290291} ) ;
291292
292293it ( 'check mode for getModificationForEntity' , ( ) => {
293- const state : any = {
294+ const state : BaseFormState = {
294295 data : {
295- [ editOnlyModificationField . field ] : { value : 'a' } ,
296+ [ editOnlyModificationField . field ] : {
297+ value : 'a' ,
298+ disabled : false ,
299+ error : false ,
300+ display : true ,
301+ } ,
296302 } ,
297303 } ;
298304
You can’t perform that action at this time.
0 commit comments