rename var

This commit is contained in:
casperlamboo 2017-11-13 15:41:11 +01:00
parent aa339fda3a
commit 3221278853
2 changed files with 3 additions and 3 deletions

View File

@ -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} />
))}

View File

@ -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(