From d24414b3ef72e348592b48add62cd6c2797506a1 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Wed, 23 Oct 2024 18:29:44 +0200 Subject: [PATCH] Try something else --- python/jupytercad_core/src/stlplugin/modelfactory.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/jupytercad_core/src/stlplugin/modelfactory.ts b/python/jupytercad_core/src/stlplugin/modelfactory.ts index 5613ebbc..94756fbd 100644 --- a/python/jupytercad_core/src/stlplugin/modelfactory.ts +++ b/python/jupytercad_core/src/stlplugin/modelfactory.ts @@ -4,9 +4,7 @@ import { Contents } from '@jupyterlab/services'; class JupyterCadSTLModel extends JupyterCadModel { fromString(data: string): void { - this.sharedModel.transact(() => { - this.sharedModel.setSource(data); - }); + this.sharedModel.source = data; this.dirty = true; } }