mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Test result table (#6747)
* Display error message if "pass test" button fails * Remove error var
This commit is contained in:
parent
0a67975f16
commit
46810fdbff
@ -191,7 +191,7 @@ export function FilterSelectDrawer({
|
||||
>
|
||||
<Stack spacing="xs">
|
||||
{tableState.activeFilters &&
|
||||
tableState.activeFilters.map((f) => (
|
||||
tableState.activeFilters?.map((f) => (
|
||||
<FilterItem key={f.name} flt={f} tableState={tableState} />
|
||||
))}
|
||||
{tableState.activeFilters && tableState.activeFilters.length > 0 && (
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user