You can remove the `then` clause here, and just return the result of `getDisplayPath` (but keep the `catchError` clause).