Skip to content

Commit

Permalink
fix: fix switch panels between problem and output
Browse files Browse the repository at this point in the history
  • Loading branch information
mortalYoung authored and mumiao committed Oct 20, 2022
1 parent 60a66ab commit 32641b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/workbench/panelService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'reflect-metadata';
import { singleton, container } from 'tsyringe';
import { editor as MonacoEditor } from 'monaco-editor';
import { StandaloneEditor } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneCodeEditor';
import { cloneDeepWith, cloneDeep } from 'lodash';
import pickBy from 'lodash/pickBy';
import { Component } from 'mo/react';
Expand Down Expand Up @@ -194,7 +195,7 @@ export class PanelService extends Component<IPanel> implements IPanelService {
if (
value &&
typeof value === 'object' &&
value.constructor.name === 'StandaloneEditor'
value instanceof StandaloneEditor
) {
return value;
}
Expand Down

0 comments on commit 32641b9

Please sign in to comment.