Removed placedMapObject depth field, cleaned package.json, creating & deleting maps now works with mapStorage

This commit is contained in:
2025-01-23 00:47:34 +01:00
parent ebd6d96e54
commit 5e2781b265
11 changed files with 82 additions and 1528 deletions

View File

@ -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)