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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

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(() => {