CB-4067 cleanup testContext info

This commit is contained in:
sergeyteleshev
2025-03-12 14:19:40 +01:00
parent 90540a1184
commit ecc83ecd52
2 changed files with 9 additions and 9 deletions
@@ -7,15 +7,15 @@
*/
export interface IConnectionTestContext {
clientVersion: string | null;
serverVersion: string | null;
connectTime: string | null;
clientVersion: string | undefined;
serverVersion: string | undefined;
connectTime: string | undefined;
}
export function connectionTestContext(): IConnectionTestContext {
return {
clientVersion: null,
serverVersion: null,
connectTime: null,
clientVersion: undefined,
serverVersion: undefined,
connectTime: undefined,
};
}
@@ -456,9 +456,9 @@ export class ConnectionFormOptionsPart extends FormPart<IConnectionFormOptionsSt
} else {
const info = await this.connectionInfoResource.test(state.projectId, this.state);
testContext.clientVersion = info.clientVersion ?? null;
testContext.serverVersion = info.serverVersion ?? null;
testContext.connectTime = info.connectTime ?? null;
testContext.clientVersion = info.clientVersion;
testContext.serverVersion = info.serverVersion;
testContext.connectTime = info.connectTime;
// to prevent form from resetting the state after saving
ExecutorInterrupter.interrupt(contexts);