Skip to content

Commit 9d9822b

Browse files
fix: ensure Apollo client is rebuilt after configuration update in rollback command (csdx launch:rollback)
- Added a call to prepareApiClients() after getConfig() to ensure the Apollo client has the correct project and organization headers based on the latest configuration.
1 parent 09f6b0c commit 9d9822b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/commands/launch/rollback.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export default class Rollback extends BaseCommand<typeof Rollback> {
5454
if (!this.flags.environment) {
5555
await this.getConfig();
5656
}
57+
58+
await this.prepareApiClients();
5759

5860
if (!this.sharedConfig.currentConfig?.uid) {
5961
await selectOrg({

0 commit comments

Comments
 (0)