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

Task list component should check if item is empty before rendering. #4968

Open
edwardhorsford opened this issue May 3, 2024 · 0 comments
Open

Comments

@edwardhorsford
Copy link
Contributor

edwardhorsford commented May 3, 2024

{{- _taskListItem(params, item, loop.index) }}

The task list component currently renders a line for each item - it should ideally be checking for empty / falsy items and skipping if so. This is relevant as when prototyping you might often do an if statement to decide whether to show a row - and currently the component renders weirdly in this case as you are rendering an empty row.

I think this is handled by something like {% if foo %} in other components.

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