Page MenuHomePhorge

Drag & Drop: fix JavaScript error related to JX.$(undefined)
ClosedPublic

Authored by valerio.bozzolan on Apr 25 2023, 14:24.
Tags
None
Referenced Files
F3395306: D25134.1744514218.diff
Sat, Apr 12, 03:16
F3373592: D25134.1744272309.diff
Wed, Apr 9, 08:05
F3370018: D25134.1744217284.diff
Tue, Apr 8, 16:48
F3368615: D25134.1744210042.diff
Tue, Apr 8, 14:47
F3361488: D25134.1744032961.diff
Sun, Apr 6, 13:36
F3359532: D25134.1743948869.diff
Sat, Apr 5, 14:14
F3351339: D25134.1743785502.diff
Thu, Apr 3, 16:51
F3351338: D25134.1743785501.diff
Thu, Apr 3, 16:51

Details

Summary

This change fixes the following recent JavaScript error:

Error: Empty ID passed to JX.$()!

The regression was introduced here:

90f9da643d1622bcfff3a8903159aeefd1b42520

Closes T15272

Test Plan
  • with this change I was able to open Conpherence Persistent Chat and Drop a file

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

valerio.bozzolan added a subscriber: Dylsss.

Thanks @Dylsss for any opinion about this small fix

This revision is now accepted and ready to land.Apr 26 2023, 06:51

I damn like avivey when runs like:

yesyes

The unit test was happy even if ./bin/celerity map was needed. Again.

jackie_chan_wtf

To find a scientific answer I will start debugging ./src/__tests__/PhabricatorCelerityTestCase.php in the future.