Skip to content

Commit 88daed1

Browse files
opt chaining (#14)
1 parent 936ce25 commit 88daed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/helper-functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function prepareNodes(flow: any) {
4949
lastNameNode.attributes.required = true
5050
}
5151

52-
let filteredNodes = flow.ui.nodes.filter((node: any) => !node.attributes?.name.startsWith("metadata"));
52+
let filteredNodes = flow.ui.nodes.filter((node: any) => !node.attributes?.name?.startsWith("metadata"));
5353

5454
const providerId = flow.identity?.metadata_public?.registration_scope?.provider_id;
5555
if (["microsoft", "google"].includes(providerId)) {

0 commit comments

Comments
 (0)