Skip to content

fix: remove duplicate loadingSpinnerGroup.destroy() in DROPDOWN sign - #2841

Merged
dguyen merged 1 commit into
documenso:mainfrom
Abzaek:fix/duplicate-spinner-destroy
May 22, 2026
Merged

dguyen merged 1 commit into
documenso:mainfrom
Abzaek:fix/duplicate-spinner-destroy

Conversation

@Abzaek

@Abzaek Abzaek commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes bug #4 from the Faultmark scan (issue #2829): loadingSpinnerGroup.destroy() was called both inside .then() (line 338) and .finally() (line 341). Since .finally() always runs after .then(), the Konva group was destroyed twice on every successful DROPDOWN sign.

Fix

Removed the destroy() call inside .then() — the .finally() block handles cleanup in all cases (success or error).

Partially addresses #2829

Bug #4 from Faultmark scan (issue documenso#2829): destroy() was called both in .then()
and .finally(). Since .finally() always runs after .then(), the Konva group
was destroyed twice on every successful dropdown sign. The second call could
throw or corrupt canvas state.

Fix: Remove the .then() call, keep only the .finally() one.
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:02pm
prd-openpage-api Ignored Ignored May 20, 2026 11:02pm
stg-docs Skipped Skipped May 20, 2026 11:02pm

Request Review

@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: d4f6195b-5119-4887-8fe0-603d96efcf85

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.

@vercel
vercel Bot temporarily deployed to Preview – stg-docs May 20, 2026 23:02 Inactive
@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 merged commit f1b2358 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 — 99d32762 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