Merged in release/2022-01-07 (pull request #336)

release/2022-01-07

Approved-by: Patrick Fic
This commit is contained in:
Patrick Fic
2022-01-06 22:26:49 +00:00
4 changed files with 16 additions and 6 deletions

View File

@@ -41,7 +41,11 @@ export default function ProductionListColumnBodyPriority({ record }) {
title={t("production.actions.bodypriority-set")} title={t("production.actions.bodypriority-set")}
> >
{new Array(15).fill().map((value, index) => ( {new Array(15).fill().map((value, index) => (
<Menu.Item key={index + 1}>{index + 1}</Menu.Item> <Menu.Item key={index + 1}>
<div style={{ marginLeft: "2rem", marginRight: "2rem" }}>
{index + 1}
</div>
</Menu.Item>
))} ))}
</Menu.SubMenu> </Menu.SubMenu>
</Menu> </Menu>

View File

@@ -41,7 +41,11 @@ export default function ProductionListColumnDetailPriority({ record }) {
title={t("production.actions.detailpriority-set")} title={t("production.actions.detailpriority-set")}
> >
{new Array(15).fill().map((value, index) => ( {new Array(15).fill().map((value, index) => (
<Menu.Item key={index + 1}>{index + 1}</Menu.Item> <Menu.Item key={index + 1}>
<div style={{ marginLeft: "2rem", marginRight: "2rem" }}>
{index + 1}
</div>
</Menu.Item>
))} ))}
</Menu.SubMenu> </Menu.SubMenu>
</Menu> </Menu>

View File

@@ -41,7 +41,11 @@ export default function ProductionListColumnPaintPriority({ record }) {
title={t("production.actions.paintpriority-set")} title={t("production.actions.paintpriority-set")}
> >
{new Array(15).fill().map((value, index) => ( {new Array(15).fill().map((value, index) => (
<Menu.Item key={index + 1}>{index + 1}</Menu.Item> <Menu.Item key={index + 1}>
<div style={{ marginLeft: "2rem", marginRight: "2rem" }}>
{index + 1}
</div>
</Menu.Item>
))} ))}
</Menu.SubMenu> </Menu.SubMenu>
</Menu> </Menu>

View File

@@ -38,13 +38,11 @@ export default function ProductionListTableContainer() {
updatedJobs.jobs, updatedJobs.jobs,
(a, b) => a.id === b.id && a.updated_at === b.updated_at (a, b) => a.id === b.id && a.updated_at === b.updated_at
); );
console.log(jobDiff);
if (jobDiff.length > 1) { if (jobDiff.length > 1) {
getUpdatedJobsData(jobDiff.map((j) => j.id)); getUpdatedJobsData(jobDiff.map((j) => j.id));
} else if (jobDiff.length === 1) { } else if (jobDiff.length === 1) {
console.log("length was 1");
jobDiff.forEach((job) => { jobDiff.forEach((job) => {
console.log("Job ", job);
getUpdatedJobData(job.id); getUpdatedJobData(job.id);
}); });
} }