Merge branch 'main' into fix_edit_update

This commit is contained in:
Max Goedjen 2025-09-10 00:26:42 -07:00 committed by GitHub
commit 735e2ca781
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,11 @@ struct StoreListView: View {
// Do this to avoid a blip.
SecretDetailView(secret: nextDefaultSecret)
} else {
EmptyStoreView(store: storeList.modifiableStore ?? storeList.stores.first)
if let modifiable = storeList.modifiableStore, modifiable.isAvailable {
EmptyStoreView(store: modifiable)
} else {
EmptyStoreView(store: storeList.stores.first(where: \.isAvailable))
}
}
}
.navigationSplitViewStyle(.balanced)