diff --git a/frontend/src/components/config/index.tsx b/frontend/src/components/config/index.tsx index 1d17371de..6ec738fda 100644 --- a/frontend/src/components/config/index.tsx +++ b/frontend/src/components/config/index.tsx @@ -2,7 +2,7 @@ import { Switch } from "@ui/switch"; import { Button } from "@ui/button"; import { Card, CardHeader, CardTitle, CardContent } from "@ui/card"; import { Input } from "@ui/input"; -import { ReactNode, useState } from "react"; +import { Fragment, ReactNode, useState } from "react"; const fmt_field = (s: string) => s.split("_").join(" "); @@ -55,7 +55,8 @@ export const Configuration = >>({ if (typeof field !== "string") return null; const val = update[field] ?? config[field]; const override = overrides?.[field]; - if (!!override) return override(val, set); + if (!!override) + return {override(val, set)}; if (typeof val === "string") { return (
>>({ } return ( >>({ key={field} className="flex justify-between items-center border-b pb-4" > -
- {" "} - {fmt_field(field)}{" "} -
+
{fmt_field(field)}
>>({ key={field} className="flex justify-between items-center border-b pb-4" > -
- {" "} - {fmt_field(field)}{" "} -
+
{fmt_field(field)}
>>({ } return ( } loading={loading}