mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-15 21:01:56 +00:00
Fix updateFileData removing code on lost read messages
This commit is contained in:
parent
570fbec090
commit
c69bac4e83
@ -69,7 +69,7 @@ export class WebideComponent implements OnInit {
|
|||||||
updateFileData(data: SourceCode) {
|
updateFileData(data: SourceCode) {
|
||||||
this.filename = data.filename;
|
this.filename = data.filename;
|
||||||
this.directory = data.directory;
|
this.directory = data.directory;
|
||||||
this.code = data.content;
|
this.code = (data.content != null) ? data.content : this.code;
|
||||||
this.language = modelist.getModeForPath(this.filename).name;
|
this.language = modelist.getModeForPath(this.filename).name;
|
||||||
this.files = data.files;
|
this.files = data.files;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user