Show empty state only when done loading
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user