File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -271,10 +271,9 @@ def __init__(
271271
272272 async def render (self ) -> dict [str , Jsonifiable ] | Jsonifiable | None :
273273 is_userfn_async = self .fn .is_async ()
274- name = self .output_id
275274 session = require_active_session (None )
276275 # Module support
277- name = session .ns (name )
276+ output_name = session .ns (self . output_id )
278277 width = self .width
279278 height = self .height
280279 alt = self .alt
@@ -296,7 +295,9 @@ async def render(self) -> dict[str, Jsonifiable] | Jsonifiable | None:
296295 # you're asking for. It takes a reactive dependency. If the client hasn't reported
297296 # the requested dimension, you'll get a SilentException.
298297 def container_size (dimension : Literal ["width" , "height" ]) -> float :
299- result = inputs [ResolvedId (f".clientdata_output_{ name } _{ dimension } " )]()
298+ result = inputs [
299+ ResolvedId (f".clientdata_output_{ output_name } _{ dimension } " )
300+ ]()
300301 return typing .cast (float , result )
301302
302303 non_missing_size = (
You can’t perform that action at this time.
0 commit comments