Merge pull request #8436 from backstage/timbonicus/github-workflow-runs-fix

[github-actions] Show empty state only when done loading
This commit is contained in:
Tim Hansen
2021-12-09 14:06:09 -07:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-github-actions': patch
---
Show empty state only when workflow API call has completed
@@ -172,8 +172,9 @@ export const WorkflowRunsTable = ({
});
const githubHost = hostname || 'github.com';
const hasNoRuns = !loading && !tableProps.loading && !runs;
return !runs ? (
return hasNoRuns ? (
<EmptyState
missing="data"
title="No Workflow Data"