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

ReportType names in titlecase causes error (Method 1) #35

Open
anjildhamala opened this issue Sep 11, 2020 · 0 comments
Open

ReportType names in titlecase causes error (Method 1) #35

anjildhamala opened this issue Sep 11, 2020 · 0 comments

Comments

@anjildhamala
Copy link

Report types in titlecase

export declare const enum ReportType {
    Dashboard = "Dashboard",
    Report = "Report",
    Tile = "Tile"
}

fail in powerbi.js embedNew function at

var Component = utils.find(function (component) {
                return componentType === component.type.toLowerCase();
              }, Service.components
            );

'Report' is not the same as 'report'. ('Report' === 'report')

Let me know if I could have done something else to fix this.

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