Skip to content

Commit da12162

Browse files
committed
Shuffle code for consistent variable names
1 parent 24cc3ff commit da12162

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shiny/render/_render.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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 = (

0 commit comments

Comments
 (0)