Skip to content

Commit 088f01f

Browse files
committed
when getting project configuration by default ignore compue server setting in file explorer
1 parent a0d978c commit 088f01f

File tree

1 file changed

+7
-0
lines changed
  • src/packages/frontend/project/websocket

1 file changed

+7
-0
lines changed

src/packages/frontend/project/websocket/api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,13 @@ export class API {
197197
no_cache = false,
198198
compute_server_id?: number,
199199
): Promise<Configuration> => {
200+
if (compute_server_id == null) {
201+
// TODO: this is home base configuration for now by default no matter what is
202+
// selected in the explorer. Someday it might be for compute servers,
203+
// but right now that info is just not used/known elsewhere in our code. So by
204+
// default use home base!
205+
compute_server_id = 0;
206+
}
200207
const api = this.getApi({ compute_server_id });
201208
return await api.system.configuration(aspect, no_cache);
202209
};

0 commit comments

Comments
 (0)