Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The default option is not working #7

Open
Gopikrishna19 opened this issue Jul 19, 2022 · 0 comments
Open

The default option is not working #7

Gopikrishna19 opened this issue Jul 19, 2022 · 0 comments

Comments

@Gopikrishna19
Copy link

The default option shows the ids selected but doesn't retain them by default and doesn't show up on the screen:

image

If I hit enter without making changes, it returns an empty array.

{
    choices: async () => {
        return (await getTags()).map(({id, name}) => ({
            name,
            value: id,
        }));
    },
    default: toTagIds(tags),
    message: 'Choose tags:',
    name: 'tags',
    type: 'search-checkbox',
}

Please let me know what I am doing wrong. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant