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

Facet names showing as "undefined" #42

Open
vinull opened this issue Dec 2, 2020 · 0 comments
Open

Facet names showing as "undefined" #42

vinull opened this issue Dec 2, 2020 · 0 comments

Comments

@vinull
Copy link

vinull commented Dec 2, 2020

New to the project, setting up the example a lot of the facet categories are showing as undefined. This appears to be the case because of the recent addition of the StripVirtcxml function:

PivotViewer.Utils.StripVirtcxml = function (value) {
    if (value.startsWith ('virtcxml:Facet'))
    return value.substr(14);
};

If the text doesn't start with virtcxml:Facet, nothing is returned. I fixed this by adding one line to the function:

PivotViewer.Utils.StripVirtcxml = function (value) {
    if (value.startsWith ('virtcxml:Facet'))
        return value.substr(14);
    else return value;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant