Fix new card sort order not reacting to changes in gather order (#4039)

This commit is contained in:
Abdo 2025-05-30 09:05:36 +03:00 committed by GitHub
parent 7a8b4a193f
commit 14b8a8ad0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,16 +20,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export let disabledChoices: T[] = [];
$: label = choices.find((c) => c.value === value)?.label;
</script>
<Select
bind:value
{label}
{disabled}
list={choices}
parser={(item) => ({
$: parser = (item) => ({
content: item.label,
value: item.value,
disabled: disabledChoices.includes(item.value),
})}
/>
});
</script>
<Select bind:value {label} {disabled} list={choices} {parser} />