mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-16 07:01:01 +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()) {
|
||||
setResult(null);
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
return api
|
||||
|
||||
Reference in new issue
Block a user