Set useEntityListProvider initial loading state

Signed-off-by: Tim Hansen <timbonicus@gmail.com>
This commit is contained in:
Tim Hansen
2021-06-24 20:43:10 -06:00
parent 89749bc2ef
commit d5b3c9c7ec
2 changed files with 34 additions and 29 deletions
@@ -29,7 +29,6 @@ export const TemplateList = () => {
const { loading, error, entities } = useEntityListProvider();
return (
<>
{/* TODO(mtlewis) figure out flash of error state when entities are loading */}
{loading && <Progress />}
{error && (
@@ -38,7 +37,7 @@ export const TemplateList = () => {
</WarningPanel>
)}
{!error && !loading && entities && !entities.length && (
{!error && !loading && !entities.length && (
<Typography variant="body2">
No templates found that match your filter. Learn more about{' '}
<Link href="https://backstage.io/docs/features/software-templates/adding-templates">