BOD-20 Added resizing for production list + fixed sorter state saving error.

This commit is contained in:
Patrick Fic
2020-04-27 11:53:08 -07:00
parent 6c0f0b082b
commit 2b19d1af0b
8 changed files with 76 additions and 20 deletions

View File

@@ -19,12 +19,14 @@ export function ProductionListContainer({ setBreadcrumbs, bodyshop }) {
const { t } = useTranslation();
const columnState = useState(
(bodyshop.production_config &&
bodyshop.production_config.columnKeys.map((k) =>
ProductionListColumns.find((e) => e.key === k)
)) ||
bodyshop.production_config.columnKeys.map((k) => {
return {
...ProductionListColumns.find((e) => e.key === k.key),
width: k.width,
};
})) ||
[]
);
// console.log("ProductionListContainer -> columnState", columnState);
useEffect(() => {
document.title = t("titles.productionlist");