Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QP.drawLines throws "Uncaught TypeError: Cannot read property 'querySelector' of undefined" error #93

Closed
Giorgi opened this issue Feb 22, 2021 · 1 comment
Labels
Milestone

Comments

@Giorgi
Copy link

Giorgi commented Feb 22, 2021

Here is the full error:

Uncaught TypeError: Cannot read property 'querySelector' of undefined
    at getNodeXml (qp.js:115)
    at Node.get [as nodeXml] (qp.js:268)
    at Node.get [as relOp] (qp.js:278)
    at nodeToThickness (qp.js:533)
    at Array.map (<anonymous>)
    at drawLinesForParent (qp.js:547)
    at Object.drawLines (qp.js:490)

This happens because findAncestor(this.element, "qp-root").parentElement["xml"] is undefined as it is only set in QP.showPlan:

container["xml"] = new DOMParser().parseFromString(planXml, "text/xml");

but not in QP.drawLines

@JustinPealing JustinPealing modified the milestones: 2.7, 2.6.1 Mar 1, 2021
JustinPealing added a commit that referenced this issue Mar 1, 2021
@JustinPealing
Copy link
Owner

Thanks - fixed now, will try and get a release done in the next few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants