Browse Source

fixed react prop validation error

Alexander Rose 6 years ago
parent
commit
f58348bced
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/apps/canvas/component/structure-view.tsx

+ 1 - 1
src/apps/canvas/component/structure-view.tsx

@@ -124,7 +124,7 @@ export class StructureViewComponent extends React.Component<StructureViewCompone
                     </select>
                     <span> </span>
                     <input type='range'
-                        value={this.state.modelId}
+                        defaultValue={this.state.modelId.toString()}
                         min={Math.min(...modelIds.map(m => m.id))}
                         max={Math.max(...modelIds.map(m => m.id))}
                         step='1'