Skip to content

Commit

Permalink
Fix: don't forget diff= parameter while searching in diff mode (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 authored Jun 8, 2024
1 parent 953a6df commit 20b40b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mwdb/web/src/components/RecentView/Views/RecentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export function RecentView(props: Props) {
if (query === prev.get("query"))
throw new Error("Tried to set the same query twice");
return {
...Object.fromEntries(prev.entries()),
q: query,
count: prev.get("count") === "1" ? "1" : "0",
};
Expand Down Expand Up @@ -233,6 +234,9 @@ export function RecentView(props: Props) {
setSearchParams(
(prev) => {
return {
...Object.fromEntries(
prev.entries()
),
q: prev.get("q") || "",
count: countingEnabled
? "0"
Expand Down

0 comments on commit 20b40b9

Please sign in to comment.