Переглянути джерело

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

Jaco Greeff 4 роки тому
батько
коміт
7b2c5cf5cf
1 змінених файлів з 4 додано та 0 видалено
  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: