mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-29 06:20:42 +00:00
Update in-memory list of circles when removing
This commit is contained in:
parent
6f55287cbb
commit
d4b0e83e64
@ -88,6 +88,12 @@ export class CircleService {
|
||||
}
|
||||
|
||||
async delete(id: number) {
|
||||
const index = this.circles.findIndex((c) => c.id == id);
|
||||
|
||||
if (index > -1) {
|
||||
this.circles.splice(index, 1);
|
||||
}
|
||||
|
||||
await this.db.storage.deleteCircle(id);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user