conservation du nom

This commit is contained in:
2025-07-19 11:57:52 +02:00
parent 9d80053093
commit 809cee0f19

View File

@ -42,8 +42,8 @@ export const loadSpace = async (spaceId: string) => {
const decompressed = decompressSpace(compressed)
if (decompressed) {
// Save the shared space with a new ID
const newSpaceId = `imported-${Date.now()}`
// Use the original space ID to preserve the name
const newSpaceId = decompressed.id
let space = await db.createSpace(newSpaceId)
// Add all notes from the shared space