asyncapi / asyncapi/website

[BUG]: Duplicate technology filter logic in handleApplyFilters causes redundant code

Open Beginner friendly
#4,894 3 comments 0 reactions 0 assignees View on GitHub
bug stale
Dominant language
TypeScript
Stars
716
Forks
1.2k
Avg merge
1d 12h
Merged PRs (30d)
35

Description

### Describe the bug.

In `components/tools/Filters.tsx`, the `handleApplyFilters` function applies the technology filter twice.

### Expected behavior

Each filter should be applied only once inside `handleApplyFilters`.

### Screenshots

Image

### How to Reproduce

1. Open `components/tools/Filters.tsx` and navigate to the `handleApplyFilters` function.
2. Notice that the `checkedTechnology` filter logic is applied twice.

### 🖥️ Device Information [optional]

- Operating System (OS):
- Browser:
- Browser Version:

### 👀 Have you checked for similar open issues?

- [x] I checked and didn't find similar issue

### 🏢 Have you read the Contributing Guidelines?

- [x] I have read the [Contributing Guidelines](https://github.com/asyncapi/.github/blob/master/CONTRIBUTING.md)

### Are you willing to work on this issue ?

Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Open components/tools/Filters.tsx and navigate to handleApplyFilters. Inspect the repeated checkedTechnology filter logic, remove the redundant application, and verify that each filter is applied only once in the function and that the filter UI still behaves as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.