mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 11:10:54 +00:00
Prevent query returning undefined value (#9847)
This commit is contained in:
@ -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