Skip to content

Commit 82b5f39

Browse files
committed
pre-commit fixup
1 parent f4af3e9 commit 82b5f39

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

pyi_hashes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"reflex/components/core/window_events.pyi": "af33ccec866b9540ee7fbec6dbfbd151",
2424
"reflex/components/datadisplay/__init__.pyi": "52755871369acbfd3a96b46b9a11d32e",
2525
"reflex/components/datadisplay/code.pyi": "b86769987ef4d1cbdddb461be88539fd",
26-
"reflex/components/datadisplay/dataeditor.pyi": "35391d4ba147cf20ce4ac7a782066d61",
26+
"reflex/components/datadisplay/dataeditor.pyi": "fb26f3e702fcb885539d1cf82a854be3",
2727
"reflex/components/datadisplay/shiki_code_block.pyi": "1d53e75b6be0d3385a342e7b3011babd",
2828
"reflex/components/el/__init__.pyi": "0adfd001a926a2a40aee94f6fa725ecc",
2929
"reflex/components/el/element.pyi": "c5974a92fbc310e42d0f6cfdd13472f4",

reflex/components/datadisplay/dataeditor.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def add_custom_code(self) -> list[str]:
384384
JavaScript code to reconstruct GridSelection.
385385
"""
386386
return [
387-
"""
387+
"""
388388
function reconstructGridSelection(selection) {
389389
if (!selection || typeof selection !== 'object') {
390390
return undefined;
@@ -420,7 +420,7 @@ def add_custom_code(self) -> list[str]:
420420
};
421421
}
422422
"""
423-
]
423+
]
424424

425425
def add_hooks(self) -> list[str]:
426426
"""Get the hooks to render.
@@ -505,8 +505,12 @@ def create(cls, *children, **props) -> Component:
505505
)
506506

507507
# Apply the reconstruction function to grid_selection if it's a Var
508-
if (grid_selection := props.get("grid_selection")) is not None and isinstance(grid_selection, Var):
509-
props["grid_selection"] = FunctionStringVar.create("reconstructGridSelection").call(grid_selection)
508+
if (grid_selection := props.get("grid_selection")) is not None and isinstance(
509+
grid_selection, Var
510+
):
511+
props["grid_selection"] = FunctionStringVar.create(
512+
"reconstructGridSelection"
513+
).call(grid_selection)
510514

511515
grid = super().create(*children, **props)
512516
return Div.create(

0 commit comments

Comments
 (0)