File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/packages/frontend/frame-editors/code-editor Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -258,8 +258,10 @@ export class Actions<
258
258
// Init setting of value whenever syncstring changes -- only used in derived classes
259
259
protected _init_syncstring_value ( ) : void {
260
260
this . _syncstring . on ( "change" , ( ) => {
261
- if ( ! this . _syncstring ) {
262
- // edge case where actions closed but this event was still triggered.
261
+ if ( ! this . _syncstring || this . _syncstring . versions ( ) . length == 0 ) {
262
+ // edge case where actions closed but this event was still triggered, OR
263
+ // the syncstring changed, but has not actually loaded a version from
264
+ // disk yet, which happens with compute servers for a second.
263
265
return ;
264
266
}
265
267
this . setState ( { value : this . _syncstring . to_str ( ) } ) ;
You can’t perform that action at this time.
0 commit comments