Skip to content

Fix query parameter clearing in updateQueryHashParams #345

@coderabbitai

Description

@coderabbitai

Description

The updateQueryHashParams function in src/components/AppController.tsx currently has an incomplete implementation for clearing query parameters. A line was added to call updateWindowUrlHashParams({queryIsCaseSensitive, queryIsRegex, queryString}) but this doesn't actually clear the parameters because it doesn't set them to their default values.

Context

This issue was discovered during PR #152 where the line was added with the intent to clear query parameters, but the implementation was incomplete.

Tasks

  • Fix the updateQueryHashParams function to properly clear query parameters by setting them to default values
  • Address the existing TODO comment: TODO: Remove empty or falsy parameters.
  • Ensure proper parameter cleanup in URL handling

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions