Skip to content

Commit f0e02ac

Browse files
#1946846: [Test] Improper showing for VM in Favorite after sign out and sign in again
1 parent 368145a commit f0e02ac

File tree

1 file changed

+1
-1
lines changed
  • Utils/azure-toolkit-ide-libs/azure-toolkit-ide-common-lib/src/main/java/com/microsoft/azure/toolkit/ide/common/favorite

1 file changed

+1
-1
lines changed

Utils/azure-toolkit-ide-libs/azure-toolkit-ide-common-lib/src/main/java/com/microsoft/azure/toolkit/ide/common/favorite/Favorites.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public synchronized void pin(@Nonnull AbstractAzResource<?, ?, ?> resource) {
174174
}
175175
final FavoriteDraft draft = this.create(resource.getId(), null);
176176
draft.setResource(resource);
177-
draft.commit();
177+
draft.createIfNotExist();
178178
}
179179

180180
public void unpin(@Nonnull String resourceId) {

0 commit comments

Comments
 (0)