Skip to content

Commit

Permalink
Issue #986: fix message delete icon
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzov96 authored and rcarnazza committed May 23, 2024
1 parent cda537b commit b4acb57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js-packages/search-frontend/src/components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ export function Search({
<button
className="openk9--search-delete-container-icon"
title={t("remove-text") || ""}
aria-label={t("remove-text-description") || ""}
aria-label={t("remove-text") || ""}
style={{
paddingRight: "16px",
display: "flex",
Expand Down
7 changes: 5 additions & 2 deletions js-packages/search-frontend/src/components/SortResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ export default function SortResults({
const handleChange = (event: React.ChangeEvent<HTMLSelectElement>) => {
const value = event.target.value;
const [label, types] = value.split("-");

setSort({ field: label, type: types as "asc" | "desc" });
if (label && types) {
setSort({ field: label, type: types as "asc" | "desc" });
} else {
setSort(undefined);
}
};

const index = selectOptions.findIndex((obj) => obj.isDefault === true);
Expand Down

0 comments on commit b4acb57

Please sign in to comment.