web/admin: run explicit update after loading instance

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-07-03 16:41:42 +02:00
parent 7257108091
commit 2c9b596f01
2 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class OAuthCallback(OAuthClientMixin, View):
except JSONDecodeError as exc: except JSONDecodeError as exc:
Event.new( Event.new(
EventAction.CONFIGURATION_ERROR, EventAction.CONFIGURATION_ERROR,
message=f"Failed to JSON-decode profile.", message="Failed to JSON-decode profile.",
raw_profile=exc.doc, raw_profile=exc.doc,
).from_http(self.request) ).from_http(self.request)
return self.handle_login_failure("Could not retrieve profile.") return self.handle_login_failure("Could not retrieve profile.")

View File

@ -12,6 +12,7 @@ export abstract class ModelForm<T, PKT extends string | number> extends Form<T>
if (this.isInViewport) { if (this.isInViewport) {
this.loadInstance(value).then(instance => { this.loadInstance(value).then(instance => {
this.instance = instance; this.instance = instance;
this.requestUpdate();
}); });
} }
} }