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
F3336185: D25134.1743571264.diff
Tue, Apr 1, 05:21
F3333885: D25134.1743541355.diff
Mon, Mar 31, 21:02
F3325208: D25134.1743410410.diff
Sun, Mar 30, 08:40
F3324952: D25134.1743405867.diff
Sun, Mar 30, 07:24
F3307224: D25134.1743140975.diff
Thu, Mar 27, 05:49
F3299421: D25134.1743020841.diff
Tue, Mar 25, 20:27
F3295522: D25134.1742955565.diff
Tue, Mar 25, 02:19
F3294639: D25134.1742940537.diff
Mon, Mar 24, 22:08

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
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 268
Build 268: arc lint + arc unit

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.