Refactor profile dropdown initialization in PathConfigsSection for clarity

This commit is contained in:
Ahmet Ildirim 2025-04-24 14:26:03 +02:00
parent f12772689a
commit a3b04e9e7d

View file

@ -463,9 +463,7 @@ class PathConfigsSection {
const profileCell = row.createEl("td");
// For other mappings, show editable dropdown
const profileDropdown = new DropdownComponent(profileCell)
.setDisabled(isDefaultMapping);
const profileDropdown = new DropdownComponent(profileCell);
// Add profile options
Object.entries(this.plugin.settings.profiles).forEach(([id, profile]) => {
profileDropdown.addOption(id, profile.name);