2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-18 02:08:22 +00:00

Fix for Category Parameters

This commit is contained in:
Oliver Walters
2025-11-26 00:27:14 +00:00
parent b39c42dfba
commit 2478b08a60
3 changed files with 23 additions and 14 deletions

View File

@@ -37,7 +37,7 @@ export default function PartCategoryTemplateTable({
value: categoryId,
disabled: categoryId !== undefined
},
parameter_template: {},
template: {},
default_value: {}
};
}, [categoryId]);
@@ -83,7 +83,7 @@ export default function PartCategoryTemplateTable({
accessor: 'category_detail.pathstring'
},
{
accessor: 'parameter_template_detail.name',
accessor: 'template_detail.name',
title: t`Parameter Template`,
sortable: true,
switchable: false
@@ -99,8 +99,8 @@ export default function PartCategoryTemplateTable({
let units = '';
if (record?.parameter_template_detail?.units) {
units = `[${record.parameter_template_detail.units}]`;
if (record?.template_detail?.units) {
units = `[${record.template_detail.units}]`;
}
return (
@@ -162,7 +162,9 @@ export default function PartCategoryTemplateTable({
tableActions: tableActions,
enableDownload: true,
params: {
category: categoryId
category: categoryId,
template_detail: true,
category_detail: true
}
}}
/>