mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-03-29 15:19:02 +08:00
Previously, selectedTemplate was initialized to null when no NEW_API credentials were detected, which caused the credentials config section to be hidden even for new configurations or GENERAL template users. Now properly detects: - NEW_API template (has accessToken or userId) - GENERAL template (has apiKey or baseUrl) - Default to GENERAL for new configurations (matches default code template)