fix: always instance options
This commit is contained in:
parent
aa8e23f8b3
commit
1c2103441c
|
@ -42,6 +42,9 @@ export function descriptionFromOps(context, ops) {
|
|||
args,
|
||||
},
|
||||
};
|
||||
if ('function' === typeof description.options) {
|
||||
description.options = description.options(previous);
|
||||
}
|
||||
}
|
||||
else {
|
||||
description = {
|
||||
|
@ -53,6 +56,9 @@ export function descriptionFromOps(context, ops) {
|
|||
),
|
||||
...children[key],
|
||||
};
|
||||
if ('function' === typeof description.options) {
|
||||
description.options = description.options(previous);
|
||||
}
|
||||
}
|
||||
}
|
||||
return description;
|
||||
|
|
Loading…
Reference in New Issue
Block a user