mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-27 22:26:00 +00:00
[PUI] fix a few sonarcloud warnings (#8133)
* fix a few code issues * fix common sonarcloud issues * more small fixes
This commit is contained in:
@@ -197,11 +197,11 @@ function LineItemFormRow({
|
||||
props,
|
||||
record,
|
||||
statuses
|
||||
}: {
|
||||
}: Readonly<{
|
||||
props: TableFieldRowProps;
|
||||
record: any;
|
||||
statuses: any;
|
||||
}) {
|
||||
}>) {
|
||||
// Barcode Modal state
|
||||
const [opened, { open, close }] = useDisclosure(false, {
|
||||
onClose: () => props.changeFn(props.idx, 'barcode', undefined)
|
||||
@@ -263,7 +263,7 @@ function LineItemFormRow({
|
||||
|
||||
// Barcode value
|
||||
const [barcodeInput, setBarcodeInput] = useState<any>('');
|
||||
const [barcode, setBarcode] = useState<String | undefined>(undefined);
|
||||
const [barcode, setBarcode] = useState<string | undefined>(undefined);
|
||||
|
||||
// Change form value when state is altered
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user