mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-20 12:10:16 +08:00
924ad44e6c
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)