Skip to content

Commit 33a953d

Browse files
committed
patch
1 parent b873c0d commit 33a953d

File tree

1 file changed

+2
-1
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/profile

1 file changed

+2
-1
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/profile/QRegionProfileManager.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ class QRegionProfileManager : PersistentStateComponent<QProfileState>, Disposabl
6969
}
7070

7171
if (profiles == null || profiles.none { it.arn == selected.arn }) {
72-
invalidateProfile(selected.arn)
72+
// Note that order matters, should switch to null first then invalidateProfile
7373
switchProfile(project, null, intent = QProfileSwitchIntent.Reload)
74+
invalidateProfile(selected.arn)
7475
Telemetry.amazonq.profileState.use { span ->
7576
span.source(QProfileSwitchIntent.Reload.value)
7677
.amazonQProfileRegion(selected.region)

0 commit comments

Comments
 (0)