소스 검색

Fix nme inputs rerender

David Catuhe 5 년 전
부모
커밋
e1f28e66d2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      nodeEditor/src/components/propertyTab/propertyTabComponent.tsx

+ 1 - 1
nodeEditor/src/components/propertyTab/propertyTabComponent.tsx

@@ -73,7 +73,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
             case NodeMaterialBlockConnectionPointTypes.Float:
                     let cantDisplaySlider = (isNaN(block.min) || isNaN(block.max) || block.min === block.max);
                     return (
-                        <div key={block.name}>                            
+                        <div key={block.uniqueId} >                            
                             {
                                 block.isBoolean &&
                                 <CheckBoxLineComponent key={block.uniqueId} label={block.name} target={block} propertyName="value"