Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/src/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const users = db.collection<UserDoc>("users");

const toPlant = (doc: WithId<PlantDoc>): Plant => ({
id: doc._id.toString(),
name: doc.commonName,
name: doc.commonName.replace(/\*/g, "").replace(/\s+/g, " ").trim(),
imageURL: doc.imageData ?? doc.imageURL ?? null,
scientificName: doc.scientificName,
description: doc.description,
Expand Down
Loading
Loading