2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-14 06:31:27 +00:00

Various small code quality cleanups (#7626)

* fix possible access to None value

* fix possible access to empty valie

* fix possible access to empty value

* define exception

* remove old todo

* fix trigger on none

* merge condition

* remove empty object pattern

* fix typo

* fix usage of var

* add missing import

* use for of itterator instead

* use let instead of var

* move declaration to ensure logger is accessible

* Revert "remove empty object pattern"

This reverts commit 4701cc97ec.
This commit is contained in:
Matthias Mair
2024-07-12 01:07:55 +02:00
committed by GitHub
parent 5d1f2b3ac0
commit 3d8235423a
8 changed files with 46 additions and 33 deletions

View File

@@ -20,8 +20,12 @@ export function CopyButton({
size="compact-md"
>
<IconCopy size={10} />
{label && <div>&nbsp;</div>}
{label && label}
{label && (
<>
<div>&nbsp;</div>
{label}
</>
)}
</Button>
)}
</MantineCopyButton>

View File

@@ -112,7 +112,8 @@ export function GroupTable() {
}),
RowDeleteAction({
onClick: () => {
setSelectedGroup(record.pk), deleteGroup.open();
setSelectedGroup(record.pk);
deleteGroup.open();
}
})
];