frontend: Label flag doesn't have id, use index instead
This commit is contained in:
parent
e957fccaca
commit
5a9d2226e4
@ -198,7 +198,7 @@
|
|||||||
{#if !exercice.submitted || sberr}
|
{#if !exercice.submitted || sberr}
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<form on:submit|preventDefault={submitFlags}>
|
<form on:submit|preventDefault={submitFlags}>
|
||||||
{#each flags as flag ((flag.type?flag.type:"i") + flag.id)}
|
{#each flags as flag, index ((flag.type?flag.type:"i") + (flag.id?flag.id:index))}
|
||||||
{#if !flag.type && !flag.id}
|
{#if !flag.type && !flag.id}
|
||||||
<div class="form-group mb-3">
|
<div class="form-group mb-3">
|
||||||
<span class="{flag.variant?('text-'+flag.variant):''}">{@html flag.label}</span>
|
<span class="{flag.variant?('text-'+flag.variant):''}">{@html flag.label}</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user