From 7b2c5cf5cf2b782d0fcd529d8566ff64934f8541 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 16 Jul 2020 08:58:20 +0200 Subject: [PATCH] Don't use VecFixed for [u8; ] (#3205) --- packages/react-params/src/Param/findComponent.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react-params/src/Param/findComponent.ts b/packages/react-params/src/Param/findComponent.ts index 5a286c06ac..4f781fb2cd 100644 --- a/packages/react-params/src/Param/findComponent.ts +++ b/packages/react-params/src/Param/findComponent.ts @@ -115,6 +115,10 @@ function fromDef ({ displayName, info, sub, type }: TypeDef): string { : 'Vec'; case TypeDefInfo.VecFixed: + if ((sub as TypeDef).type === 'u8') { + return type; + } + return 'VecFixed'; default: