Removed placedMapObject depth field, cleaned package.json, creating & deleting maps now works with mapStorage
This commit is contained in:
@ -23,6 +23,14 @@ export class BaseStorage<T extends { id: string }> {
|
||||
}
|
||||
}
|
||||
|
||||
async delete(id: string) {
|
||||
try {
|
||||
await this.dexie.table(this.tableName).delete(id)
|
||||
} catch (error) {
|
||||
console.error(`Failed to delete ${this.tableName} ${id}:`, error)
|
||||
}
|
||||
}
|
||||
|
||||
async get(id: string): Promise<T | null> {
|
||||
try {
|
||||
const item = await this.dexie.table(this.tableName).get(id)
|
||||
|
Reference in New Issue
Block a user