fix: always instance options

This commit is contained in:
cha0s 2020-06-25 10:16:09 -05:00
parent aa8e23f8b3
commit 1c2103441c

View File

@ -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;