mirror of
https://github.com/inventree/InvenTree.git
synced 2026-02-02 03:14:56 +00:00
[UI] Bug fix for test result table (#11236)
* [UI] Bug fix for test result table - Do not retain test choices when selecting a new test * Remove quick-pass action if test has defined choices
This commit is contained in:
@@ -1503,6 +1503,10 @@ export function useTestResultFields({
|
||||
setChoices([]);
|
||||
setFieldType('string');
|
||||
}
|
||||
} else {
|
||||
// No choices defined - this is a free-form text field
|
||||
setChoices([]);
|
||||
setFieldType('string');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -358,6 +358,7 @@ export default function StockItemTestResultTable({
|
||||
icon: <IconCircleCheck />,
|
||||
hidden:
|
||||
!record.templateId ||
|
||||
!!record.choices ||
|
||||
record?.requires_attachment ||
|
||||
record?.requires_value ||
|
||||
record.result,
|
||||
|
||||
Reference in New Issue
Block a user