Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent error message when owner/repo has not been set
The owner/repo variables are set to undefined during the first render of the WorkflowRunDetails component. These undefined values are then passed to the useWorkflowRunsDetails hook and are returned as an error. This causes a false error message to show for a split second. The next render succesfully triggers when the owner/repo values get set, updating the details variable and returning the correct react component. A new "loading" variable has been added that checks for loading values in addition to the details value existing. I've also added an extra check for the error.message value considering it's used within the error message. This prevents the false error message from displaying. Signed-off-by: KaemonIsland <kaemonlovendahl@outlook.com>
- Loading branch information