web/flows: fix error on interactive Captcha stage when retrying captcha (#13119)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2025-02-20 15:00:57 +01:00
committed by GitHub
parent ca3b948895
commit 8d5b835c4f

View File

@ -161,7 +161,7 @@ export class CaptchaStage extends BaseStage<CaptchaChallenge, CaptchaChallengeRe
super.disconnectedCallback(); super.disconnectedCallback();
} }
get captchaDocumentContainer() { get captchaDocumentContainer(): HTMLDivElement {
if (this._captchaDocumentContainer) { if (this._captchaDocumentContainer) {
return this._captchaDocumentContainer; return this._captchaDocumentContainer;
} }
@ -170,7 +170,7 @@ export class CaptchaStage extends BaseStage<CaptchaChallenge, CaptchaChallengeRe
return this._captchaDocumentContainer; return this._captchaDocumentContainer;
} }
get captchaFrame() { get captchaFrame(): HTMLIFrameElement {
if (this._captchaFrame) { if (this._captchaFrame) {
return this._captchaFrame; return this._captchaFrame;
} }
@ -326,7 +326,7 @@ export class CaptchaStage extends BaseStage<CaptchaChallenge, CaptchaChallengeRe
.exhaustive(); .exhaustive();
} }
updated(changedProperties: PropertyValues<this>) { firstUpdated(changedProperties: PropertyValues<this>) {
if (!(changedProperties.has("challenge") && this.challenge !== undefined)) { if (!(changedProperties.has("challenge") && this.challenge !== undefined)) {
return; return;
} }