chore: biome checks

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-10-15 14:38:26 -07:00
parent 70b547c9c9
commit 3022b25541
5 changed files with 142 additions and 132 deletions

View file

@ -337,12 +337,7 @@ export function useConnectorEditPage(connectorId: number, searchSpaceId: string)
const originalSafesearch = originalConfig.SEARXNG_SAFESEARCH;
if (safesearchRaw) {
const parsed = Number(safesearchRaw);
if (
Number.isNaN(parsed) ||
!Number.isInteger(parsed) ||
parsed < 0 ||
parsed > 2
) {
if (Number.isNaN(parsed) || !Number.isInteger(parsed) || parsed < 0 || parsed > 2) {
toast.error("SearxNG SafeSearch must be 0, 1, or 2.");
setIsSaving(false);
return;
@ -521,10 +516,7 @@ export function useConnectorEditPage(connectorId: number, searchSpaceId: string)
"SEARXNG_CATEGORIES",
normalizeListInput(newlySavedConfig.SEARXNG_CATEGORIES).join(", ")
);
editForm.setValue(
"SEARXNG_LANGUAGE",
newlySavedConfig.SEARXNG_LANGUAGE || ""
);
editForm.setValue("SEARXNG_LANGUAGE", newlySavedConfig.SEARXNG_LANGUAGE || "");
editForm.setValue(
"SEARXNG_SAFESEARCH",
newlySavedConfig.SEARXNG_SAFESEARCH === null ||