[pgAdmin4][Patch]: Select2 control destroy issue [Minor fix]

From: Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin4][Patch]: Select2 control destroy issue [Minor fix]
Date: 2016-10-14 10:09:02
Message-ID: CAM5-9D9CkiQ10Tdann6cA_LDmDcuiZLcNRtWvka0fLt5h3izcA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi

While clicking on Select2 control, it tries to destroy the control and thus
it doesn't get this object sometimes and throws error.

It should attempt to destroy the select2 object only if this object is not
undefined.
Adds proper check to handle the case.

Please find minor patch and review.

Thanks
Surinder Kumar

Attachment Content-Type Size
select2_control_destroy_issue.patch application/octet-stream 441 bytes

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Surinder Kumar 2016-10-14 10:19:36 [Patch]: Error while renaming FTS dictionary and FTS template nodes
Previous Message Surinder Kumar 2016-10-14 10:01:05 Re: [pgAdmin4][Patch]: RM1728 - Properties are not refreshing after objects are edited