Skip to content

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

@anjildhamala

Description

@anjildhamala

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions