Prevent query returning undefined value (#9847)
This commit is contained in:
parent
0b451dc085
commit
f1482aaa28
|
|
@ -93,7 +93,7 @@ export function useGenerator(props: GeneratorProps): GeneratorState {
|
|||
|
||||
if (!isEnabled()) {
|
||||
setResult(null);
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
return api
|
||||
|
|
|
|||
Loading…
Reference in New Issue