mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-27 05:00:53 +01:00
fix: auto-select first matching instance in ImportReleasesModal
This commit is contained in:
@@ -107,8 +107,8 @@
|
||||
// Get selected instance name
|
||||
$: selectedInstance = filteredInstances.find((i) => i.id === selectedInstanceId);
|
||||
|
||||
// Auto-select if only one matching instance
|
||||
$: if (open && entity && filteredInstances.length === 1 && selectedInstanceId === null) {
|
||||
// Auto-select first matching instance
|
||||
$: if (open && entity && filteredInstances.length > 0 && selectedInstanceId === null) {
|
||||
selectedInstanceId = filteredInstances[0].id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user