Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions React-TS/Embed for your organization/UserOwnsData/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const powerbi = new service.Service(factories.hpmFactory, factories.wpmpFactory,
let accessToken = "";
let embedUrl = "";
let reportContainer: HTMLElement;
let reportRef: React.Ref<HTMLDivElement>;
let reportRef: React.RefObject<HTMLDivElement>;
let loading: JSX.Element;

// eslint-disable-next-line @typescript-eslint/no-empty-interface
Expand Down Expand Up @@ -106,7 +106,7 @@ class App extends React.Component<AppProps, AppState> {
// React function
componentDidMount(): void {
if (reportRef !== null) {
reportContainer = reportRef["current"];
reportContainer = reportRef.current!;
}

// User input - null check
Expand Down