diff --git a/packages/base/src/widget.ts b/packages/base/src/widget.ts index 6cb981fc02..aea060fc8d 100644 --- a/packages/base/src/widget.ts +++ b/packages/base/src/widget.ts @@ -87,6 +87,7 @@ export function pack_models( for (const [key, sub_value] of Object.entries(value)) { packed[key] = pack_models(sub_value, widget); } + return packed; } else { return value; }