Skip to content

Commit f03e6cb

Browse files
Fix lint error
1 parent 568b035 commit f03e6cb

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/components/song-search-panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ import {
5050
TooltipTrigger,
5151
} from "~/components/ui/tooltip";
5252
import { pathOptions } from "~/lib/channel-options";
53-
import { cn, getErrorMessage } from "~/lib/utils";
5453
import { formatPathLabel } from "~/lib/request-policy";
54+
import { cn, getErrorMessage } from "~/lib/utils";
5555

5656
type SearchField = "any" | "title" | "artist" | "album" | "creator";
5757
type SearchSort =

src/lib/validation.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ export const searchInputSchema = z
4040
sortDirection: z.enum(["asc", "desc"]).default("desc"),
4141
})
4242
.superRefine((input, ctx) => {
43-
const hasAdvancedFilter = !!(
44-
input.title ||
45-
input.artist ||
46-
input.album ||
47-
input.creator ||
48-
(input.tuning && input.tuning.length > 0) ||
49-
(input.parts && input.parts.length > 0) ||
50-
(input.year && input.year.length > 0)
51-
);
5243
const hasCoreText = !!(
5344
input.query ||
5445
input.title ||

0 commit comments

Comments
 (0)