mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for react hook (#7151)
* Fix for react hook * Improve quantity input
This commit is contained in:
parent
acfd50372d
commit
7f12d55609
@ -143,7 +143,6 @@ function StockItemDefaultMove({
|
||||
stockItem: any;
|
||||
value: any;
|
||||
}) {
|
||||
console.log('item', stockItem);
|
||||
const { data } = useSuspenseQuery({
|
||||
queryKey: [
|
||||
'location',
|
||||
@ -289,7 +288,7 @@ function StockOperationsRow({
|
||||
} else {
|
||||
return `#${record.serial}`;
|
||||
}
|
||||
}, record);
|
||||
}, [record]);
|
||||
|
||||
return (
|
||||
<tr>
|
||||
@ -317,6 +316,7 @@ function StockOperationsRow({
|
||||
<NumberInput
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
disabled={!!record.serial && record.quantity == 1}
|
||||
max={setMax ? record.quantity : undefined}
|
||||
min={0}
|
||||
style={{ maxWidth: '100px' }}
|
||||
|
Loading…
Reference in New Issue
Block a user