We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da6a520 + dd61c70 commit b9cbf4cCopy full SHA for b9cbf4c
components/Sort.tsx
@@ -107,11 +107,18 @@ export default function Sort() {
107
</Button>
108
<div className="h-64 p-2 z-50 overflow-y-scroll shadow dropdown-content bg-base-100 rounded-box w-60">
109
<ul tabIndex={0} className="menu menu-vertical">
110
- {navigationItems.map((item, index) => (
111
- <li key={index}>
112
- <Link href={{ query: item.href.query }}>{item.name}</Link>
113
- </li>
114
- ))}
+ {navigationItems.map((item, index) => {
+ const query = item.href.query;
+ if (item.name === SortTypes.BestMatch) {
+ delete query.o;
+ delete query.s;
115
+ }
116
+ return (
117
+ <li key={index}>
118
+ <Link href={{ query }}>{item.name}</Link>
119
+ </li>
120
+ );
121
+ })}
122
</ul>
123
</div>
124
0 commit comments