File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
apps/playground-web/src/app Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { insightBlueprints } from "./insight/insightBlueprints";
33
44const staticSidebarLinks : SidebarLink [ ] = [
55 {
6- name : "Connect " ,
6+ name : "Wallets " ,
77 isCollapsible : false ,
88 links : [
99 {
@@ -113,7 +113,7 @@ const universalBridgeSidebarLinks: SidebarLink = {
113113} ;
114114
115115const engineSidebarLinks : SidebarLink = {
116- name : "Engine " ,
116+ name : "Transactions " ,
117117 isCollapsible : false ,
118118 expanded : false ,
119119 links : [
You can’t perform that action at this time.
0 commit comments