Skip to content

Commit e11cff6

Browse files
committed
fix: force blocklist detail view recreation on selection change
1 parent 65bf504 commit e11cff6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Tome/Views/BlocklistsView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ struct BlocklistsView: View {
6262
// Detail: domain editor
6363
if let id = selectedID, let idx = blocklistManager.blocklists.firstIndex(where: { $0.id == id }) {
6464
BlocklistDetailView(blocklist: $blocklistManager.blocklists[idx], isLocked: appState.isActivelyBlocking)
65+
.id(id)
6566
} else {
6667
Color.clear
6768
.overlay(

0 commit comments

Comments
 (0)