mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 21:15:41 +00:00
Test result table (#6747)
* Display error message if "pass test" button fails * Remove error var
This commit is contained in:
@ -277,6 +277,13 @@ export default function StockItemTestResultTable({
|
||||
message: t`Test result has been recorded`,
|
||||
color: 'green'
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
showNotification({
|
||||
title: t`Error`,
|
||||
message: t`Failed to record test result`,
|
||||
color: 'red'
|
||||
});
|
||||
});
|
||||
},
|
||||
[itemId]
|
||||
|
Reference in New Issue
Block a user