resolveDuplicateTitle
resolveDuplicateTitle(
props):string|undefined
Defined in: packages/core/src/documents/cloneDocumentForDuplicate.ts:34
The source document’s current title, when useAsTitle names a renameable title field — not
a Convex system field (_id/_creationTime/_updatedAt) and holding a non-empty string.
undefined otherwise. cloneDocumentForDuplicate uses this to decide whether (and
what) to rename; a caller displaying the pre-rename title (the duplicate dialog’s “copied
from” note) reads it here instead of re-deriving the same rule.
Parameters
Section titled “Parameters”Input props.
document
Section titled “document”Record<string, unknown>
The source document.
useAsTitle
Section titled “useAsTitle”string | undefined
The collection’s admin.useAsTitle.
Returns
Section titled “Returns”string | undefined
The current title string, or undefined when there is none to rename.