fix user_created new set when updating other users profile marker

This commit is contained in:
Anton Tranelis 2025-09-12 11:12:32 +02:00
parent 07c8154453
commit b93d8377fd

View File

@ -178,9 +178,8 @@ function useSelectPositionManager(): {
)
if (result.success && result.data) {
// Find the layer object by ID from server response
const layer = layers.find((l) => l.id === (result.data!.layer as unknown as string))
const itemWithLayer = { ...result.data, layer, user_created: user ?? undefined }
const itemWithLayer = { ...result.data, layer, user_created: updatedItem.user_created }
updateItem(itemWithLayer)
}
}