I have an org chart that is using a gallery to show direct reports with this formula in the Items property:
If(
IsBlank(varSelectedUser),
Filter(
Office365Users.DirectReportsV2(varLoggedInUser).value,accountEnabled=true),
Filter(
Office365Users.DirectReportsV2(varSelectedUser).value,accountEnabled=true)
)
but it's showing an error of The method 'DirectReports' has an invalid value for parameter 'userId' at the top of the screen when the app first loads (I added the if statements as a potential fix but did not work).

Before I put in the If statements in the code above I was using simply:
Office365Users.DirectReportsV2(varSelectedUser).value
on the gallery Items property.
The build studio shows no errors and the Org Browser app works fine after the initial error on load. From what I have read this is a common occurrence whenever the connector encounters ANY error 🙄
How can I suppress this error on first load. Are there any error suppressions functions?
Appreciate any advice and thanks in advance 😁