fix workspace getServers
This commit is contained in:
1 parent
d84a5ef95d
commit
8177424594
1 file changed
+5
-1
@@ -86,7 +86,11 @@ export default class Workspace {
|
||||
this.workdir = workdir;
|
||||
}
|
||||
getServers() {
|
||||
return this.model.servers || [];
|
||||
if(this.model && this.model.servers) {
|
||||
return this.model.servers;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
getModel() {
|
||||
return this.model;
|
||||
|
||||
Reference in new issue
Block a user