2
0
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:
Oliver
2024-03-19 10:00:52 +11:00
committed by GitHub
parent 0a67975f16
commit 46810fdbff
2 changed files with 8 additions and 1 deletions

View File

@ -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]