fix: 🐛
This commit is contained in:
parent
10bfeb23ad
commit
21e4e3badf
2 changed files with 6 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ export function useFetchRelayList(pubkey?: string | null) {
|
|||
}
|
||||
|
||||
fetchRelayList()
|
||||
}, [])
|
||||
}, [pubkey])
|
||||
|
||||
return relayList
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,7 +126,11 @@ class ClientService {
|
|||
}
|
||||
|
||||
deleteEventCacheByFilter(filter: Filter) {
|
||||
this.eventCache.delete(JSON.stringify({ ...filter, limit: 1 }))
|
||||
try {
|
||||
this.eventCache.delete(JSON.stringify({ ...filter, limit: 1 }))
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
async fetchEventById(id: string): Promise<NEvent | undefined> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue