web/admin: fix user selection in token form
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
23a7eba16b
commit
7a12c0e4d1
|
@ -62,7 +62,7 @@ export class TokenForm extends ModelForm<Token, string> {
|
||||||
return users.results.map((user) => {
|
return users.results.map((user) => {
|
||||||
return html`<option
|
return html`<option
|
||||||
value=${user.pk}
|
value=${user.pk}
|
||||||
?selected=${this.instance?.user === user}
|
?selected=${this.instance?.user === user.pk}
|
||||||
>
|
>
|
||||||
${user.username}
|
${user.username}
|
||||||
</option>`;
|
</option>`;
|
||||||
|
|
Reference in New Issue