Skip to content

Commit ea8b0f4

Browse files
committed
Fix options page disappearing if all custom configurations are deleted
1 parent 8eb7c0c commit ea8b0f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/options/CategoryChooserComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export function CategoryChooserComponent() {
158158

159159
setConfigurations(Config.local!.skipProfiles);
160160
const newID = Object.keys(Config.local!.skipProfiles)[0] as ConfigurationID;
161-
setSelectedConfigurationID(newID);
161+
setSelectedConfigurationID(newID ?? null);
162162
}
163163
}}>
164164
{chrome.i18n.getMessage("DeleteConfiguration")}

0 commit comments

Comments
 (0)