diff --git a/src/components/Form/FormSelect.tsx b/src/components/Form/FormSelect.tsx index e665db8c..db110c15 100644 --- a/src/components/Form/FormSelect.tsx +++ b/src/components/Form/FormSelect.tsx @@ -44,6 +44,7 @@ export function SelectInput({ } = useController({ name: field.name, control, + defaultValue: field.properties.defaultValue, }); const { enumValue, formatEnumName, defaultValue, ...remainingProperties } = diff --git a/src/components/PageComponents/Messages/TraceRoute.test.tsx b/src/components/PageComponents/Messages/TraceRoute.test.tsx index c3d89de3..1d6c9fd9 100644 --- a/src/components/PageComponents/Messages/TraceRoute.test.tsx +++ b/src/components/PageComponents/Messages/TraceRoute.test.tsx @@ -70,7 +70,7 @@ describe("TraceRoute", () => { getNode: (nodeNum: number): Protobuf.Mesh.NodeInfo | undefined => { return mockNodes.get(nodeNum); }, - }); + } as any); }); it("renders the route to destination with SNR values", () => { @@ -106,8 +106,10 @@ describe("TraceRoute", () => { />, ); + // Check for the translated title expect(screen.getByText("Route back:")).toBeInTheDocument(); + // With route back, both names appear twice expect(screen.getAllByText("Source Node")).toHaveLength(2); expect(screen.getAllByText("Destination Node")).toHaveLength(2); diff --git a/src/index.css b/src/index.css index 56103edb..41165535 100644 --- a/src/index.css +++ b/src/index.css @@ -93,6 +93,7 @@ body { } @layer base { + *, ::after, ::before, @@ -138,4 +139,4 @@ img { .animate-spin-slow { animation: spin-slower 2s linear infinite; -} +} \ No newline at end of file