mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-22 09:47:00 +00:00
Prevent query returning undefined value (#9847)
This commit is contained in:
1 parent
0b451dc085
commit
f1482aaa28
1 file changed
+1
-1
@@ -93,7 +93,7 @@ export function useGenerator(props: GeneratorProps): GeneratorState {
|
|||||||
|
|
||||||
if (!isEnabled()) {
|
if (!isEnabled()) {
|
||||||
setResult(null);
|
setResult(null);
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return api
|
return api
|
||||||
|
|||||||
Reference in new issue
Block a user