Skip to content

Commit 4bc634e

Browse files
Paolo PialorsiAJIXuMuK
authored andcommitted
Improved code quality for DynamicForm support of Document Sets
1 parent 98aeee1 commit 4bc634e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controls/dynamicForm/DynamicForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export class DynamicForm extends React.Component<IDynamicFormProps, IDynamicForm
253253
}
254254
console.log("Error", error);
255255
}
256-
} else if (contentTypeId.startsWith('0x0120')) {
256+
} else if (contentTypeId !== undefined && contentTypeId !== '' && contentTypeId.startsWith('0x0120')) {
257257
// We are adding a folder or a Document Set
258258
try {
259259
const idField = 'ID';

0 commit comments

Comments
 (0)