The useEffect runs Promise.all([...]).then(...).finally(...) with no .catch. If either request fails (e.g. the org doesn't belong to the user), the rejection is unhandled, org stays null, and the component just returns null, leaving a blank page with no indication anything went wrong.
Suggested fix: Add a .catch handler that sets an error state and renders it, instead of silently leaving the page blank.
The
useEffectrunsPromise.all([...]).then(...).finally(...)with no.catch. If either request fails (e.g. the org doesn't belong to the user), the rejection is unhandled,orgstaysnull, and the component just returnsnull, leaving a blank page with no indication anything went wrong.Suggested fix: Add a
.catchhandler that sets an error state and renders it, instead of silently leaving the page blank.