Skip to content

Commit

Permalink
fix: Reflect.set
Browse files Browse the repository at this point in the history
  • Loading branch information
l-x-f committed Dec 2, 2022
1 parent d4d5a85 commit 1d9c562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export function generateShape(item: ShapeCoreType, _index?: number): AllShape {
break
}

if (params) {
if (params && shape) {
Reflect.set(shape as any, 'params', params)
}

Expand Down

0 comments on commit 1d9c562

Please sign in to comment.