Fixed volunteer filters.

This commit is contained in:
Pen Anderson 2026-03-05 19:11:58 -06:00
parent 4c462c9d47
commit c03498b59e
2 changed files with 9 additions and 5 deletions

View file

@ -414,7 +414,10 @@
<div class="board-assign-row">
<select bind:value={assignVolID} style="width:auto">
<option value={0}> Select volunteer —</option>
{#each $allVolunteers ?? [] as v}
{#each ($allVolunteers ?? [])
.filter(v => v.department_id === shift.department_id)
.filter(v => !assigned.some(a => a.volunteer.id === v.id))
as v}
<option value={v.id}>{v.name}</option>
{/each}
</select>