diff --git a/src/mol-util/param-definition.ts b/src/mol-util/param-definition.ts index c83bf1ea79d49e9c41fa7173536b3f2c85f2f7c4..75c92e462b29a056d0329f584194b6c12be2b654 100644 --- a/src/mol-util/param-definition.ts +++ b/src/mol-util/param-definition.ts @@ -205,7 +205,7 @@ export namespace ParamDefinition { getLabel(t: T): string } export function ObjectList<T>(element: For<T>, getLabel: (e: T) => string, info?: Info & { defaultValue?: T[], ctor?: () => T }): ObjectList<Normalize<T>> { - return setInfo<ObjectList<Normalize<T>>>({ type: 'object-list', element: element as any as Params, getLabel, ctor: _defaultObjectListCtor, defaultValue: (info && info.defaultValue) || [] }); + return setInfo<ObjectList<Normalize<T>>>({ type: 'object-list', element: element as any as Params, getLabel, ctor: _defaultObjectListCtor, defaultValue: (info && info.defaultValue) || [] }, info); } function _defaultObjectListCtor(this: ObjectList) { return getDefaultValues(this.element) as any; }