[pgAdmin4][Patch]: TypeError: Cannot read property 'generate_url' of undefined

From: Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin4][Patch]: TypeError: Cannot read property 'generate_url' of undefined
Date: 2016-06-07 11:02:37
Message-ID: CAM5-9D-ve7VSPHpjroHMxUr0C_YBAvS4tSnkZoqk70TA-tG8Wg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

*Issue:* When any of the docked tab(statistics, dependents & dependencies)
are clicked without selecting any tree node. it gives error in browser
console panel.
Because the node passed is undefined. and check is missing. This is now
fixed by adding check for node passed.

So, please review the attached patch for the fix.

Thanks,
Surinder Kumar

Attachment Content-Type Size
node_undefined_issue.patch application/octet-stream 1.4 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2016-06-07 11:13:00 pgAdmin 4 commit: Fix venv search path on Mac.
Previous Message Surinder Kumar 2016-06-07 09:49:49 Re: [pgAdmin4][Patch]: RM#1184 - Re-docking on the main tabset is broken