Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: slider nan

Myles Scolnickc1f3c935e433
diff --git a/frontend/src/plugins/impl/SliderPlugin.tsx b/frontend/src/plugins/impl/SliderPlugin.tsx
index d5aab40637..e6f94df2ae 100644
--- a/frontend/src/plugins/impl/SliderPlugin.tsx
+++ b/frontend/src/plugins/impl/SliderPlugin.tsx
@@ -147,8 +147,8 @@ const SliderComponent = ({
<NumberField
value={valueMap(internalValue)}
onChange={(nextValue) => {
- // If nextValue is null/undefined (input cleared), set to start
- if (nextValue == null) {
+ // If nextValue is null/undefined/NaN (input cleared), set to start
+ if (nextValue == null || Number.isNaN(nextValue)) {
nextValue = Number(start);
}
setInternalValue(nextValue);