fdaciuk / fdaciuk/conduit-api

Empty Taglist doens't return any articles

Open
#42 1 comment 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
TypeScript
Stars
182
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Hello, i was using the API and i found an possible bug, when i doesn't pass an list of tags sometimes doesn't return any article on the api/articles route.

![image](https://user-images.githubusercontent.com/44060767/211911078-908527b6-9dea-464b-a019-05141c9153f3.png)

An possible to this is implement an condition like you already did in the the favoritedFilter function:
![image](https://user-images.githubusercontent.com/44060767/211911422-7260539c-a467-406d-b80a-3cdbbc77cf2f.png)

With this, i was able to solve the problem.

Empty Tag returning all the articles.

![image](https://user-images.githubusercontent.com/44060767/211911930-4dc12117-57a2-49d2-888c-7fd14cfc8f2f.png)

With Tag return just the **DACIOK BRABO** article.

![image](https://user-images.githubusercontent.com/44060767/211912757-f561ebaf-9f2c-4962-b92d-e223dc7f9888.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.