Skip to content

Commit 66cada5

Browse files
EralChenCopilot
authored andcommitted
Update packages/vue-node-registry/src/registry.ts
Co-authored-by: Copilot <[email protected]>
1 parent 7c7ebb0 commit 66cada5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/vue-node-registry/src/registry.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ export const vueNodesMap: Record<string, VueNodeEntry> = Object.create(
3232
*/
3333
export function getVueNodeConfig(
3434
type: string,
35-
graphModel: GraphModel,
35+
graphModel?: GraphModel | null,
3636
): VueNodeEntry | undefined {
37+
if (typeof graphModel !== 'object' || graphModel === null) {
38+
return undefined
39+
}
3740
return vueNodesMaps.get(graphModel)?.get(type)
3841
}
3942

0 commit comments

Comments
 (0)