feat(xo-server-auth-ldap/cli): default to adding as many items as present in default value
This commit is contained in:
parent
5044a814a1
commit
23b687c528
@ -94,11 +94,12 @@ const promptByType = {
|
||||
}
|
||||
|
||||
n = schema.maxItems || Infinity
|
||||
const m = defaultValue.length
|
||||
while (
|
||||
// eslint-disable-next-line no-unmodified-loop-condition
|
||||
i < n &&
|
||||
(await confirm('additional item?', {
|
||||
default: false,
|
||||
default: i < m,
|
||||
}))
|
||||
) {
|
||||
await promptItem()
|
||||
|
Loading…
Reference in New Issue
Block a user