Explorar el Código

Don't use VecFixed for [u8; <length>] (#3205)

Jaco Greeff hace 4 años
padre
commit
7b2c5cf5cf
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      packages/react-params/src/Param/findComponent.ts

+ 4 - 0
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: