Skip to content

Commit

Permalink
Merge pull request #8436 from backstage/timbonicus/github-workflow-ru…
Browse files Browse the repository at this point in the history
…ns-fix

[github-actions] Show empty state only when done loading
  • Loading branch information
timbonicus committed Dec 9, 2021
2 parents d81b57f + 89bd772 commit 3e70c67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/beige-mangos-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/plugin-github-actions': patch
---

Show empty state only when workflow API call has completed
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3e70c67

Please sign in to comment.