1
0
Fork 0

🚧 Fixed part list in draft only option

This commit is contained in:
Joost De Cock 2019-06-30 10:53:31 +02:00
parent bae6c4f244
commit f40ccc9e4a

View file

@ -28,7 +28,6 @@ const DraftSettings = props => {
metric: <FormattedMessage id="app.metricUnits" />,
imperial: <FormattedMessage id="app.imperialUnits" />
};
const addProps = setting => {
const labels = {
sa: {
@ -62,8 +61,8 @@ const DraftSettings = props => {
childProps.dflt = "dflt";
childProps.customDflt = [];
childProps.parts = {};
if (props.config.parts) {
for (let part of props.config.parts) // HERE
if (props.config.draftOrder) {
for (let part of props.config.draftOrder)
childProps.parts[part] = <FormattedMessage id={"parts." + part} />;
}
}