fix(time-off): remove document when request URL is cleared

Merged
AD
4d ago
+14-11

PR

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.


Fixed editing the time off document url field not saving removed url document.

https://github.com/user-attachments/assets/5157e66b-3aee-4329-a2b7-a575bf4be5f9

https://github.com/user-attachments/assets/4ca28827-a267-4b3b-936c-21f1041e1492


Summary by cubic

Fixes time-off request document field editing so clearing or changing the URL now saves the change and drops the stale document reference.

Previously, removing the document URL left the old value in the form, so the request kept the stale document. Now the uploader emits the cleared URL, resetting documentUrl to null. When the URL is cleared or changed, documentId is also reset, so the subscriber can't restore the asset's URL on reload. The uploader only emits a checked URL if it still matches the input's current value, so an image fetch that finishes after the field was cleared can't restore the removed URL.