🚧 Fixed part list in draft only option
This commit is contained in:
parent
bae6c4f244
commit
f40ccc9e4a
1 changed files with 2 additions and 3 deletions
|
@ -28,7 +28,6 @@ const DraftSettings = props => {
|
||||||
metric: <FormattedMessage id="app.metricUnits" />,
|
metric: <FormattedMessage id="app.metricUnits" />,
|
||||||
imperial: <FormattedMessage id="app.imperialUnits" />
|
imperial: <FormattedMessage id="app.imperialUnits" />
|
||||||
};
|
};
|
||||||
|
|
||||||
const addProps = setting => {
|
const addProps = setting => {
|
||||||
const labels = {
|
const labels = {
|
||||||
sa: {
|
sa: {
|
||||||
|
@ -62,8 +61,8 @@ const DraftSettings = props => {
|
||||||
childProps.dflt = "dflt";
|
childProps.dflt = "dflt";
|
||||||
childProps.customDflt = [];
|
childProps.customDflt = [];
|
||||||
childProps.parts = {};
|
childProps.parts = {};
|
||||||
if (props.config.parts) {
|
if (props.config.draftOrder) {
|
||||||
for (let part of props.config.parts) // HERE
|
for (let part of props.config.draftOrder)
|
||||||
childProps.parts[part] = <FormattedMessage id={"parts." + part} />;
|
childProps.parts[part] = <FormattedMessage id={"parts." + part} />;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue