File tree Expand file tree Collapse file tree 2 files changed +65
-50
lines changed
webparts/controlsTest/components Expand file tree Collapse file tree 2 files changed +65
-50
lines changed Original file line number Diff line number Diff line change @@ -255,8 +255,8 @@ export class DynamicForm extends React.Component<
255
255
} else if ( fieldType === "TaxonomyFieldType" ) {
256
256
objects [ columnInternalName ] = {
257
257
__metadata : { type : "SP.Taxonomy.TaxonomyFieldValue" } ,
258
- Label : value [ 0 ] . name ,
259
- TermGuid : value [ 0 ] . key ,
258
+ Label : value [ 0 ] ? .name ?? "" ,
259
+ TermGuid : value [ 0 ] ? .key ?? "11111111-1111-1111-1111-111111111111" ,
260
260
WssId : "-1" ,
261
261
} ;
262
262
} else if ( fieldType === "TaxonomyFieldTypeMulti" ) {
@@ -414,6 +414,7 @@ export class DynamicForm extends React.Component<
414
414
// trigger when the user change any value in the form
415
415
private onChange = async (
416
416
internalName : string ,
417
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
417
418
newValue : any ,
418
419
additionalData ?: FieldChangeAdditionalData
419
420
) : Promise < void > => {
@@ -774,6 +775,7 @@ export class DynamicForm extends React.Component<
774
775
listId : string ,
775
776
contentTypeId : string | undefined ,
776
777
webUrl ?: string
778
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
777
779
) : Promise < any > => {
778
780
// eslint-disable-line @typescript-eslint/no-explicit-any
779
781
try {
You can’t perform that action at this time.
0 commit comments