Skip to content

Commit 09b8815

Browse files
authored
Merge branch 'main' into greg/tool-4839-fix-insight-tokens-request-fails-when-no-routes
2 parents ddf5659 + 381e423 commit 09b8815

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

apps/playground-web/src/app/insight/[blueprint_slug]/blueprint-playground.client.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,9 +815,13 @@ function openAPIV3ParamToZodFormSchema(
815815
}
816816

817817
if (itemSchema) {
818-
return isRequired
818+
const arraySchema = isRequired
819819
? z.array(itemSchema).min(1, { message: "Required" })
820-
: z.array(itemSchema).optional();
820+
: z.array(itemSchema);
821+
const arrayOrSingleItemSchema = z.union([arraySchema, itemSchema]);
822+
return isRequired
823+
? arrayOrSingleItemSchema
824+
: arrayOrSingleItemSchema.optional();
821825
}
822826
}
823827
break;

apps/playground-web/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default async function RootLayout({
3636
}: {
3737
children: React.ReactNode;
3838
}) {
39-
const sidebarLinks = await getSidebarLinks();
39+
const sidebarLinks = getSidebarLinks();
4040
return (
4141
<html lang="en" suppressHydrationWarning>
4242
<head>

apps/playground-web/src/app/navLinks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { insightBlueprints } from "./insight/insightBlueprints";
33

44
const staticSidebarLinks: SidebarLink[] = [
55
{
6-
name: "Connect",
6+
name: "Wallets",
77
isCollapsible: false,
88
links: [
99
{
@@ -113,7 +113,7 @@ const universalBridgeSidebarLinks: SidebarLink = {
113113
};
114114

115115
const engineSidebarLinks: SidebarLink = {
116-
name: "Engine",
116+
name: "Transactions",
117117
isCollapsible: false,
118118
expanded: false,
119119
links: [

0 commit comments

Comments
 (0)