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

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

From
Surinder Kumar
Date:
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
Thanks, applied.

On Tue, Jun 7, 2016 at 12:02 PM, Surinder Kumar
<surinder.kumar@enterprisedb.com> wrote:
> 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
>
>
> --
> Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company