From 322127885385cbd118b0d9d8de4cd8d28722a1f5 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Mon, 13 Nov 2017 15:41:11 +0100 Subject: [PATCH] rename var --- src/interface/Settings.js | 4 ++-- src/interface/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interface/Settings.js b/src/interface/Settings.js index c2e0cb8..79fbeab 100644 --- a/src/interface/Settings.js +++ b/src/interface/Settings.js @@ -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 {
- + {Object.entries(printers).map(([value, { title }]) => ( ))} diff --git a/src/interface/index.js b/src/interface/index.js index 288ff74..ac901c3 100644 --- a/src/interface/index.js +++ b/src/interface/index.js @@ -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(