diff --git a/client/packages/editor-oss/src/editor/assets/v2/BehaviorEditor/index.tsx b/client/packages/editor-oss/src/editor/assets/v2/BehaviorEditor/index.tsx index c689f30..26e3048 100644 --- a/client/packages/editor-oss/src/editor/assets/v2/BehaviorEditor/index.tsx +++ b/client/packages/editor-oss/src/editor/assets/v2/BehaviorEditor/index.tsx @@ -553,13 +553,14 @@ const BehaviorEditor: React.FC = ({ editor.updateOptions({glyphMargin: true}); } + //FIX: this code block is causing editor content changes to be reverted // Update content if model already existed but has stale content // (This handles switching back to a previously-viewed file) - if (!modelChanged && isUsableModel(newModel) && newModel.getValue() !== selectedFile.content) { - isProgrammaticChangeRef.current = true; - applyServerContent(newModel, selectedFile.content); - isProgrammaticChangeRef.current = false; - } + // if (!modelChanged && isUsableModel(newModel) && newModel.getValue() !== selectedFile.content) { + // isProgrammaticChangeRef.current = true; + // applyServerContent(newModel, selectedFile.content); + // isProgrammaticChangeRef.current = false; + // } // Track that we've applied content for this file lastAppliedFileIdRef.current = selectedFile.id;