gradio-pr-bot commited on
Commit
6d9ba61
·
verified ·
1 Parent(s): 060b50c

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. 6.3.1/utils/src/utils.svelte.ts +5 -1
6.3.1/utils/src/utils.svelte.ts CHANGED
@@ -338,7 +338,11 @@ export class Gradio<T extends object = {}, U extends object = {}> {
338
 
339
  this.load_component = this.shared.load_component;
340
 
341
- if (!is_browser || _props.props?.__GRADIO_BROWSER_TEST__) return;
 
 
 
 
342
  const { register, dispatcher } = getContext<{
343
  register: (
344
  id: number,
 
338
 
339
  this.load_component = this.shared.load_component;
340
 
341
+ if (!is_browser || _props.props?.__GRADIO_BROWSER_TEST__) {
342
+ // Provide a no-op dispatcher for test environments
343
+ this.dispatcher = () => {};
344
+ return;
345
+ }
346
  const { register, dispatcher } = getContext<{
347
  register: (
348
  id: number,