fix project-select showing empty status categories.
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type Project from "../models/project";
|
import { group } from "console";
|
||||||
|
import type Project from "../models/project";
|
||||||
import authStore from "../stores/auth";
|
import authStore from "../stores/auth";
|
||||||
import projectStore from "../stores/project";
|
import projectStore from "../stores/project";
|
||||||
|
|
||||||
@@ -69,10 +70,12 @@ import authStore from "../stores/auth";
|
|||||||
<option value={""} selected={"" === value}>None</option>
|
<option value={""} selected={"" === value}>None</option>
|
||||||
{/if}
|
{/if}
|
||||||
{#each optGroups as group (group.status)}
|
{#each optGroups as group (group.status)}
|
||||||
<optgroup label={group.status}>
|
{#if group.projects.length > 0}
|
||||||
{#each group.projects as project (project.id)}
|
<optgroup label={group.status}>
|
||||||
<option value={project.id} selected={project.id === value}>{project.name}</option>
|
{#each group.projects as project (project.id)}
|
||||||
{/each}
|
<option value={project.id} selected={project.id === value}>{project.name}</option>
|
||||||
</optgroup>
|
{/each}
|
||||||
|
</optgroup>
|
||||||
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
Reference in New Issue
Block a user