mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
Ensure that the proper editor is updated by syncing
This commit is contained in:
parent
a5ad97f47d
commit
1a8a24587f
@ -709,6 +709,9 @@ export function Root(props: IProps): React.ReactElement {
|
||||
// Save changes
|
||||
openScript.code = serverScriptCode;
|
||||
|
||||
// Switch to target tab
|
||||
onTabClick(index)
|
||||
|
||||
if (editorRef.current !== null && openScript !== null) {
|
||||
if (openScript.model === undefined || openScript.model.isDisposed()) {
|
||||
regenerateModel(openScript);
|
||||
|
Loading…
Reference in New Issue
Block a user