mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01:00
rename var
This commit is contained in:
parent
aa339fda3a
commit
3221278853
@ -29,7 +29,7 @@ class Settings extends React.Component {
|
||||
|
||||
let state;
|
||||
switch (fieldName) {
|
||||
case 'printers':
|
||||
case 'printer':
|
||||
case 'quality':
|
||||
case 'material':
|
||||
state = {
|
||||
@ -57,7 +57,7 @@ class Settings extends React.Component {
|
||||
<Tabs>
|
||||
<Tab label="basic">
|
||||
<div>
|
||||
<SelectField name="printers" floatingLabelText="Printer" fullWidth>
|
||||
<SelectField name="printer" floatingLabelText="Printer" fullWidth>
|
||||
{Object.entries(printers).map(([value, { title }]) => (
|
||||
<MenuItem key={value} value={value} primaryText={title} />
|
||||
))}
|
||||
|
@ -69,7 +69,7 @@ class Interface extends React.Component {
|
||||
controlMode: 'translate',
|
||||
isSlicing: false,
|
||||
sliced: false,
|
||||
printers: defaultPrinter,
|
||||
printer: defaultPrinter,
|
||||
quality: defaultQuality,
|
||||
material: defaultMaterial,
|
||||
settings: _.merge(
|
||||
|
Loading…
Reference in New Issue
Block a user