2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-13 14:11:37 +00:00

Fix for PartParameterTable (#10278)

- Redraw cell after updating value
This commit is contained in:
Oliver
2025-09-06 14:58:19 +10:00
committed by GitHub
parent 755a02f4a2
commit fe8aa187c4

View File

@@ -48,7 +48,7 @@ function ParameterCell({
// Find matching template parameter
const parameter = useMemo(() => {
return record.parameters?.find((p: any) => p.template == template.pk);
}, [record.parameters, template]);
}, [record, template]);
const extra: any[] = [];
@@ -289,7 +289,7 @@ export default function ParametricPartTable({
table.updateRecord(records[partIndex]);
},
[table.updateRecord]
[table.records, table.updateRecord]
);
const parameterColumns: TableColumn[] = useMemo(() => {