소스 검색

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: