Skip to content

Commit

Permalink
fix: fix unable to clear created by filter
Browse files Browse the repository at this point in the history
Fixes #2017
  • Loading branch information
mainawycliffe committed Jun 18, 2024
1 parent e8107b8 commit 1dd909f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ function FilterBadge({ filters, paramKey }: FilterBadgeProps) {
className="flex flex-row gap-1 px-2 text-xs"
onRemove={() => onRemove(paramKey, filter)}
>
<span className="text-gray-500 font-semibold">{paramKey}:</span>
<span className="text-gray-500 font-semibold">
{paramKey === "external_created_by" ? "created_by" : paramKey}:
</span>
<span className="text-gray-500">
{filter
.split(":")[0]
Expand Down
2 changes: 1 addition & 1 deletion src/pages/config/ConfigChangesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function ConfigChangesPage() {
filter.set("created_by", createdBy);
}
if (externalCreatedBy) {
filter.set("created_by", externalCreatedBy);
filter.set("external_created_by", externalCreatedBy);
}
return Object.fromEntries(filter);
}, [changeSummary, configId, createdBy, externalCreatedBy, source]);
Expand Down

0 comments on commit 1dd909f

Please sign in to comment.