[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:
parent
218e492a9d
commit
94be4ebb26
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue