Skip to content

Commit 04db2f1

Browse files
committed
Add missing codes
1 parent 27a6ba6 commit 04db2f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/intellij/runner/webapp/webappconfig/slimui/WebAppSlimSettingPanel.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,11 @@ public synchronized void fillWebApps(List<ResourceEx<WebApp>> webAppLists) {
271271
lblCreateWebApp.setVisible(false);
272272
cbxWebApp.setVisible(true);
273273
cbxWebApp.addItem(CREATE_NEW_WEBAPP);
274+
// Need calculated target id first or fill combo box will trigger event to change selectedWebApp
274275
final String configurationWebAppId = webAppConfiguration.getWebAppId();
275276
final String targetId = (StringUtils.isEmpty(configurationWebAppId) && selectedWebApp != null) ?
276277
selectedWebApp.getResource().id() : configurationWebAppId;
278+
sortedWebAppLists.forEach(webAppResourceEx -> cbxWebApp.addItem(webAppResourceEx));
277279
final ResourceEx<WebApp> selectWebApp = sortedWebAppLists
278280
.stream()
279281
.filter(webAppResourceEx -> StringUtils.equals(webAppResourceEx.getResource().id(), targetId))

0 commit comments

Comments
 (0)