Explorar o código

fixed react prop validation error

Alexander Rose %!s(int64=6) %!d(string=hai) anos
pai
achega
f58348bced
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'