mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
fix: preserve existing symbol when cloning a manual asset activity When cloning an activity linked to a manual asset (VALUABLE, FEE, INTEREST, LIABILITY), the symbol field in onSubmit() was explicitly set to undefined for these types, causing the backend to generate a new UUID and create a duplicate SymbolProfile instead of reusing the existing one. Simplify the symbol assignment to always prefer searchSymbol.value.symbol (which correctly holds the existing asset's identifier when cloning) and fall back to name.value only when no symbol exists (i.e. when creating a brand-new manual asset). Fixes #5324pull/6845/head
committed by
GitHub
1 changed files with 1 additions and 5 deletions
Loading…
Reference in new issue