web/admin: fix user selection in token form

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-09-04 14:33:40 +02:00
parent 23a7eba16b
commit 7a12c0e4d1

View file

@ -62,7 +62,7 @@ export class TokenForm extends ModelForm<Token, string> {
return users.results.map((user) => {
return html`<option
value=${user.pk}
?selected=${this.instance?.user === user}
?selected=${this.instance?.user === user.pk}
>
${user.username}
</option>`;