fix reset for user created files (where therefore no original file is available)
This commit is contained in:
@ -113,7 +113,9 @@ CodeOceanEditorSubmissions = {
|
|||||||
var file = _.find(response.files, function(file) {
|
var file = _.find(response.files, function(file) {
|
||||||
return file.id === file_id;
|
return file.id === file_id;
|
||||||
});
|
});
|
||||||
|
if(file){
|
||||||
editor.setValue(file.content);
|
editor.setValue(file.content);
|
||||||
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user