Skip to content

fix: handleInitialsFieldClick now returns initialsToInsert instead of initials - #2838

Merged
dguyen merged 1 commit into
documenso:mainfrom
Abzaek:fix/initials-field-null
May 22, 2026
Merged

dguyen merged 1 commit into
documenso:mainfrom
Abzaek:fix/initials-field-null

Conversation

@Abzaek

@Abzaek Abzaek commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes bug #3 from the Faultmark scan (issue #2829): handleInitialsFieldClick always submitted null as the initials value because the return statement used value: initials (the original input parameter, always null after the dialog call) instead of value: initialsToInsert (the user's typed input).

Root cause

The function stored the dialog result in initialsToInsert (line 31) but returned value: initials (line 43) — the original destructured parameter which was always null after the first successful dialog call.

Fix

Changed line 43 from value: initials to value: initialsToInsert.

Verification

  • TypeScript compiles cleanly with npx tsc --noEmit

Closes ... (partially addresses #2829)

… initials

Bug #3 from Faultmark scan: the function stored user input in initialsToInsert
but returned value: initials (the original null). Changed to value: initialsToInsert
so the user's typed initials are actually saved.

Signed-off-by: Abdulazez A. <[email protected]>
@vercel

vercel Bot commented May 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
prd-docs Ignored Ignored May 20, 2026 11:01pm
prd-openpage-api Ignored Ignored May 20, 2026 11:01pm
stg-docs Skipped Skipped May 20, 2026 11:01pm

Request Review

@vercel
vercel Bot temporarily deployed to Preview – stg-docs May 20, 2026 23:01 Inactive
@coderabbitai

coderabbitai Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 29d44ac3-45cd-48ab-ae86-029fbd9a40be

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Mythie

Mythie commented May 20, 2026

Copy link
Copy Markdown
Collaborator

Hey there, it looks like you haven't accepted our contributor license agreement yet. In order for us to accept your pull request we ask that you please fill out the CLA:

https://documen.so/cla

@dguyen dguyen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dguyen
dguyen merged commit 0a6b045 into documenso:main May 22, 2026
2 checks passed
scoobs-mystery-bytes pushed a commit to scoobs-mystery-bytes/documenso that referenced this pull request May 30, 2026

This branch was previously deployed

1 inactive deployment
Preview – stg-docs — 0b70d16d Deployed May 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants