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: don't error when writing UI elements values that already exist (#8147)

Myles Scolnick8e87999a65b4
diff --git a/frontend/src/core/dom/uiregistry.ts b/frontend/src/core/dom/uiregistry.ts
index 94a42ba615..d6f05ecf70 100644
--- a/frontend/src/core/dom/uiregistry.ts
+++ b/frontend/src/core/dom/uiregistry.ts
@@ -51,7 +51,10 @@ export class UIElementRegistry {
set(objectId: UIElementId, value: ValueType): void {
if (this.entries.has(objectId)) {
- throw new Error(`UIElement ${objectId} already registered`);
+ Logger.debug(
+ "UIElementRegistry overwriting entry for objectId.",
+ objectId,
+ );
}
this.entries.set(objectId, {
objectId: objectId,