File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -469,14 +469,7 @@ def add_context(*args, **kwargs):
469
469
470
470
component_ids = collections .defaultdict (dict )
471
471
472
- if not has_output :
473
- if output_value is not None :
474
- raise InvalidCallbackReturnValue (
475
- f"No output callback received return value: { output_value } "
476
- )
477
- output_value = []
478
- flat_output_values = []
479
- else :
472
+ if has_output :
480
473
if not multi :
481
474
output_value , output_spec = [output_value ], [output_spec ]
482
475
flat_output_values = output_value
@@ -504,6 +497,13 @@ def add_context(*args, **kwargs):
504
497
id_str = stringify_id (speci ["id" ])
505
498
prop = clean_property_name (speci ["property" ])
506
499
component_ids [id_str ][prop ] = vali
500
+ else :
501
+ if output_value is not None :
502
+ raise InvalidCallbackReturnValue (
503
+ f"No output callback received return value: { output_value } "
504
+ )
505
+ output_value = []
506
+ flat_output_values = []
507
507
508
508
if not long :
509
509
side_update = dict (callback_ctx .updated_props )
You can’t perform that action at this time.
0 commit comments