2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-17 14:58:36 +00:00

remove unused statements (#11949)

This commit is contained in:
Matthias Mair
2026-05-15 23:57:33 +02:00
committed by GitHub
parent e3a22762e8
commit 038dcc9c74
2 changed files with 1 additions and 12 deletions
@@ -111,17 +111,6 @@ export function TableField({
field.onChange(val);
};
const fieldDefinition = useMemo(() => {
return {
...definition,
modelRenderer: undefined,
onValueChange: undefined,
adjustFilters: undefined,
read_only: undefined,
addRow: undefined
};
}, [definition]);
// Extract errors associated with the current row
const rowErrors: any = useCallback(
(idx: number) => {
+1 -1
View File
@@ -73,7 +73,7 @@ export function useGenerator(props: GeneratorProps): GeneratorState {
);
// API query handler
const queryGenerator = useQuery({
useQuery({
enabled: true,
queryKey: [
'generator',