Repository navigation
fix: remove duplicate loadingSpinnerGroup.destroy() in DROPDOWN sign - #2841
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
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 |
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